Archive for CPT works, but not for main posts

Question

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:
https://better.sg/archive (this is supposed to be the archive for posts, but it does not work)
https://better.sg/blog/tools (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.

0
gaurav 2 months 0 Answers 5 views 0

Leave an answer