Custom Post Taxonomy Template Not Loading Properly

admin2025-04-20  0

I have a website I inherited that is exhibiting strange behavior for a custom post type taxonomy template.

The post type is resource, the taxonomy is resource_brand, and if it matters, the taxonomy is rewritten as brand.

I have a template for brands at taxonomy-resource_brand.php that is NOT being called when I view the taxonomy archive at /brand/{brand}. Instead, a template called taxonomy-resource.php is loaded, which is not even a registered taxonomy on the site. If I delete this file, the website crashes when it tries to load the taxonomy archive.

How can I troubleshoot this effectively? I've tried disabling the rewrite, and double/triple checking the template files before coming here.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1745081613a283892.html

最新回复(0)