Archive for CPT works, but not for main posts


I have a website that has posts and also a custom post type called "tools". I want to generate an archive page for both. I am able to generate an archive page for my CPT, but for some reason, I am unable to do so for the main posts.

Here is my setup:

  • for posts, the archive page is a new Page and uses the template "archive.php". In the archive.php file, I have a /* template Name: Archive */ and have properly selected it as the page type under page attributes.
  • For tools, I just set up the CPT UI to say "has archive" and didn’t create any page.

Here are the links: (this is supposed to be the archive for posts, but it does not work) (this is the automatically generated url for the archive for tools, and it works. I didn’t do anything to enable this!)

How do i fix this? I’m using blocksy theme and the problem came after switching theme from a custom theme to this new one.

gaurav 2 years 2020-12-09T22:10:39-05:00 0 Answers 5 views 0

Leave an answer