• 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

Viewing 1 replies (of 1 total)
  • Thread Starter 83creative

    (@winnard)

    Hi,

    Hoping somebody can help me with this issue as I am still struggling to pull out the correct template file for this particular problem.

    Could it possibly be a custom search.php template that would be used?

    I am really not sure. I am wondering whether to contact the Search & Filter plugin page to see if there is a template I should be using.

    Could I add conditionals into the current archive.php to display either blog posts, or CPT?

    Can anybody help me with this issue?

Viewing 1 replies (of 1 total)
  • The topic ‘Struggling with Template Hierarchy and Custom Post Type’ is closed to new replies.