How To Make Unique Archive Pages for Custom Taxonomy?
-
I have created a custom post type called characters. Each character is assigned a custom taxonomy called a “ship”. Posts can also be assigned to “ships”.
I figured out how to create an archive for my custom taxonomy (taxonomy-ship.php) here: https://cantstopshipping.com/ships/, but What I’m currently trying to do is create unique landing pages for each of the Ships so that when you click on a single ship you’re directed to a page that lists all the characters associated with that ship and then all the posts associated with it.
The thing is, I can’t seem to figure out what template file I should create/edit in order to do this. Every time I click on one of the ships, I get directed to a new URL (https://cantstopshipping.com/ship/jarvey for example, but it just uses the taxonomy-ship.php template and displays the list of ships again.
I know there’s a taxonomy-ship-{slug}.php template for individual ships, but then I would have to design a template for every ship (which is crazy since there will be hundreds). Since each tag’s page will have the same layout (just different content being generated by the loop), I thought it would be easy to make a template for this but I can’t figure it out…
Any help in understanding how to fix this issue would be greatly appreciated!
- The topic ‘How To Make Unique Archive Pages for Custom Taxonomy?’ is closed to new replies.