I'm writing my own WordPress theme and I'm having problems with the archive page. My archive link yields a 404 Not Found. I get this link from
get_post_type_archive_link("post") and it just adds
/archives to the base URL of my website.
My permalink structure is set to Post name and I have clicked Save changes to make sure that any pending
.htaccess changes were saved. Category links work fine. Here's a list of PHP files in my theme root:
Any idea why the archive link isn't working?