0
votes

I have a custom post type Service and in there have a number of terms and sub terms:

term 1
--sub term 1
--sub term 2 
term 2
--sub term 1
--sub term 2

I have using the template file taxonomy-service-tax.php to display the template of the term in custom post type and now i want to have a different template for sub term, so .. what template file should i use to display sub term page in custom post type?

1

1 Answers

0
votes

In the same template use 2 different files. Include one if your term doesn't have parent, user the other one if term does have parent term.