Struggling with Template Hierarchy and Custom Post Type
-
Hi Guys,
Losing my mind with the simplest of tasks at the moment and for sanities sake could somebody please help me out.
I have a Custom Post Type called “Business”. It is hierarchical and has two custom taxonomies which I have set to work like “Categories” and “Tags”
One taxonomy called “Counties” which acts like categories.
One taxonomy called “Business Type” which acts like Tags.First off on my static page called “Wedding Directory” I am using the Search & Filter plugin to display a search box to search via “County” and or “Business Type”.
When I select for example KENT > Photographer in the search & filter plugin the Archive.php template file is loaded. I have tried to use the following to stop it loading the archive.php template but to no avail
archive-business.php
I don’t know which other template file I need to change to sort this out. Currently the archive.php template runs my loop for the blog.
I have a separate loop for businesses which I need the archive or results to display with.
Can anybody help with this? Other post types which I have setup seem to respond to the custom archive template. This one does not.
I know it must be a simple template change but I have looked at it that long I can no longer decipher what it should be.
Cheers in advance
Dan
- The topic ‘Struggling with Template Hierarchy and Custom Post Type’ is closed to new replies.