WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

because of my taxonomy hierarchy, my taxonomy-type.php template is already used, is there a way to have only one taxonomy-type-term.php template ?

I've got 13 sub terms, do I need to create 13 taxonomy-type-[term].php templates ?



share|improve this question
Could you give us an example of what you're trying to accomplish? What, for instance, do you want different on each of the subterms? I built a template recently where I setup several conditionals to handle the main term and then the subterms, all in the same taxonomy template. That may work for you. – Jonathan Wold Jun 27 '11 at 20:13
Yes, I think it can do the trick, can you please share the code of this template with me ? – Cyril Jul 3 '11 at 15:06

Simply use taxonomy-{taxonomy}.php.

Refer to the Template Hierarchy Codex entry regarding taxonomies.

WordPress will look for taxonomy template files in the following order:

  1. taxonomy-{taxonomy}-{term}.php - If the taxonomy were sometax, and taxonomy's slug were someterm WordPress would look for taxonomy-sometax-someterm.php.
  2. taxonomy-{taxonomy}.php - If the taxonomy were sometax, WordPress would look for taxonomy-sometax.php
  3. taxonomy.php
  4. archive.php
  5. index.php


If you're already using taxonomy-{taxonomy}.php for something other than the index archive for {taxonomy}, perhaps you should re-consider your current use of this template file?

share|improve this answer
Actually, my taxonomy-{taxonomy}.php is already use. – Cyril Jun 27 '11 at 16:31
What is taxonomy-{taxonomy}.php in use as, already, if not as the generic index archive template for {taxonomy}? – Chip Bennett Jun 27 '11 at 17:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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