2

Is it possible to have separate archive templates for custom taxonomies?

Like this:

Tax(categories)

-Players(category)

-Managers(category)

2 Answers 2

3

Yes, the heirarchy is like this:

taxonomy-{taxonomy}-{term}.php
taxonomy-{taxonomy}.php
taxonomy.php
archive.php
index.php

So in your case you would create:

taxonomy-tax-players.php and taxonomy-tax-managers.php

1

Is it possible to have separate archive templates for custom taxonomies?

Yes. Each file name depends on the slug for that taxonomy. See the Custom Taxonomies display section of the Template Hierarchy for specifics.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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