I've created a custom taxonomy called 'productCategories' using register_taxonomy() function. I've set the rewrite slug to 'products'.

My question is: How do I render a different template to archive.php for my custom taxonomy /products ?

Thanks, Jon

1 Answer 1


Create a template file called taxonomy-productCategories.php. For more information, see the Template Hierarchy. I find this image particularly helpful.


Your Answer

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

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