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.