Two Different Archive Templates for same Post Type

Is there any way to create two different archive templates for the same post type? I have a CPT we’ll call “Books”. I want to have an archive page that shows only the books published in the current year (using an ACF field) and another archive page that shows books published in all years EXCEPT the current year.

I have the older-years Archive page setup as an actual Archive template and it works great.

However, when I go to create the current-year, I run into a problem. I cannot figure out how to create another Archive template for that post type, but I cannot use a standard page with a looper because I need to use FacetWP for filtering and pagination, and it won’t seem to work on the standard page.

I’m thinking I might be able to do this with the new Cornerstone Forms (and I’ve advance-purchased it) but I need to launch by early next week so I can’t really wait.

Hello Danni,

Thanks for writing in! The custom post type archive should only be 1. It displays the published items in chronological order. If you are going to separate the old published item, you would need to customize it. It will involve a custom page and a custom query code that filters out the old published items so they are not displayed in the custom post type archive. Be advised that this is beyond the scope of our support. What you have in mind is already considered custom development. You may need to contact a 3rd party developer to be able to implement this for your site.

Best Regards.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.