One Custom Post type, Two different single post templates
-
Hello All, hopefully I have a easy problem to solve.
I am currently using this plug in and LOVING IT! Just one small thing.
I have a custom Post Type called “Culinary Arts” with it’s slug “culinary”.
Within that Post Type, I have a category named “Baking” with “it’s slug “baking”. It’s category template is called “category-baking.php”
I have set up a single post template for this post type called “single-culinary.php”
All of this works perfectly, no problems… But here is what I would like to do..
I would like to add another category and single post templates that still with in this Post Type.
I have another category names “baking2” (with the same slug name)
BUT I need a different single post template for this (baking2) category.. and this is where I am lost.
I tried “single-baking2.php” to call them like normal, but it dose not work because it is within the custom post type. Iv tried variations of “single-culinary-baking2.php”, “single-culinarybaking2.php” but any of this posts are still using the “single-culinary.php”.
I am at a lost on how to name the template.. Love any help
The topic ‘One Custom Post type, Two different single post templates’ is closed to new replies.