Template Files for Product Category and Product Tag Pages

WooCommerce uses a different template structure for its default pages, in this tutorial you will be surprised what files it uses for product category and tag archive pages.

Product categories is a custom taxonomy product_cat, product tags is a custom taxonomy product_tag, right? So, according to the template hierarchy in WordPress Codex, the files should be taxonomy-product_cat.php, archive.php etc?

Surprise, but no! 😁

And that’s why I decided to publish a post about it, because it is kind of unclear. It is even more unclear than with the shop page we discussed in the previous tutorial.

Look at the diagram:

Template hierarchy for WooCommerce product categories and tags

I think the main reason why WooCommerce uses this template structure for product categories and tags is because the content of these pages is auto-generated by the plugin. It makes it impossible to use native taxonomy and archive templates for this purpose.


Misha Rudrastyh

Misha Rudrastyh

I love WordPress, WooCommerce and Gutenberg so much. 10 yrs of experience.

Need some custom developer help? Let me know

Follow Misha

Need some help with WooCommerce?

If you need some professional developer help, I will be happy to assist you.

Contact me Who I am?

Leave a comment

php js HTML CSS Code

I will only use your personal information to contact you. Privacy Policy