I have new custom Taxonomy for cars list spec. I would like to know what is the best way to create a different template for parent(main) and second layer and the third layer children taxonomies.
I can not use this way taxonomy-{taxonomy}-{slug}.php
, Because I have a lot of category and subcategory names.
First there is the Brands page (main tax):
BMW
Benz
Volvo
And..
If I choose BMW for example. there is the Series page (second layer):
Series 1
Series 2
Series 3
And...
And if, for example, I choose series 3, I will enter the page of Generations of this series (third layer):
E21
E21 facelift
E30
And..
And if I choose E21 for example:
I enter the specifications page of this car (my new post-type).
Url: mysite{dot}com/cars/bmw/3-series/e21
I want each of the layers of the main category, the second layer, and the third layer to have a separate template.
Update: In this answer we can seperate children and parent. How I can do this for the second layer and the third layer children?