I am needing to create an archive page custom taxonomy terms that are within a custom post type. It’s set up as CPT > Custom Taxonomy > Taxonomy Terms.

I have a custom post type called “Projects,” and when creating the post, the user is to select a type of project for the listing (i.e. Construction, Maintenance, etc.). But, I need to create archive pages for the individual terms. I’ve been searching and working at it via trial-and-error for hours and just keep banging my head into the wall.

3 Answers
3

There is an example in the WP Codex which should work for you:

Try the following naming convention for your taxonomy term archive template:

taxonomy-{taxonomy}-{term}.php

So, let’s say you have a CPT named “Projects,” a taxonomy named “Maintenance,” and a term within the taxonomy named “Professional.” Then your naming convention would be:

taxonomy-maintenance-professional.php

Leave a Reply

Your email address will not be published. Required fields are marked *