문제

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

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 wordpress.stackexchange
scroll top