My client has a requirement to show a specific template on particular high-traffic category pages, which they should be able to choose (i.e. no need for changing code).

I have a category with the auto-generated URL:
https://www.example.com/product-category/drinks/carbonated/

Aiming to override the default template for this category page, I’ve created a new custom post type with a permalink identical to the above. However, when the page loads it displays the original (default) template.

How can I force WordPress to show my new template, if a permalink exists within my custom post type?

Read more here: Override WooCommerce category page template with custom post type template with same permalink


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: