Custom archive template for taxonomy subcategories
-
I’m developing a website that has a custom post type ‘products’ with a custom taxonomy ‘product categories’ and under ‘product categories’ there is a category called ‘car decals’ and it’s the parent category for a sub-category called ‘animal decals’. I developed a custom taxonomy archive template for ‘car decals’ and it’s called taxonomy-prcat-car-decals.php.
The problem is that the template is NOT being applied to the subcategories under ‘car decals’. I have figured out that I can just re-name the template taxonomy-prcat-animal-decals.php to get the template to apply to the animal decals archive page.
HOWEVER, there are about 25 subcategories under ‘car decals’ – and they all need the same template.
HOW DO I…name a template so that it will apply to the ‘car decals’ archive and all its child categories?
- The topic ‘Custom archive template for taxonomy subcategories’ is closed to new replies.