0

How to specify the page template name for my custom taxonomy and where it should be placed whether in page-template directory or at theme root directory?

eg. i have custom taxonomy location_category and it has many items like Africa, Asia, America etc.... like and some contains sub-items like "Asia" have sub-items 'China', 'India' etc..

How to define page templates structure for it ?

eg. taxonomy-asia.php at theme root directory is not working.

0

where it should be placed whether in page-template directory or at theme root directory?

It should be placed at the root directory of the the active theme.

If you take a look at template heirarchy, you can see that for taxonomy the flow is:

taxonomy-$taxonomy-$term.php --> taxonomy-$taxonomy.php --> taxonomy.php

So the correct name for term (Asia) is taxonomy-location_category-asia.php instead of taxonomy-asia.php and the same for other terms also.

protected by Community Aug 6 '15 at 9:23

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.