Having a lot of issues with a custom taxonomy. So far I've spent an hour and a half searching and trying different things. I've tried almost everything and it's got to the point where I think I'm code blind.
I have a CPT called
businesses and a custom taxonomy called
business-types. The client is going to be adding different business types to assign to posts within the CPT.
They have a section setup like so:
Businesses [Custom page template, which loops through the CPT and does stuff based on ACF values]. This is the parent item on the nav.
A dropdown on the nav has the custom taxonomies so people can only view businesses in one industry (Such as medical, construction, retail etc). When they click these it should show posts from the
businesses CPT which have the corresponding
business-types assigned to it.
I've got the
taxonomy-business-types.php however the body class doesn't indicate it's using this template which I think could be doing something (Which according to the template hierarchy at WP, it should be doing.
I've googled everything I can think of, checked the codex, and still no luck. I've tried about 200 things I've come across on SO and none have worked so far. I have't had this issue before so I think I may be going mental having worked on this site solid for this week!
Any help and advice would be greatly appreciated.