Forums Forums Search & Filter Pro search.php vs. template-slug.php files

Viewing 3 posts - 1 through 3 (of 3 total)
  • Anonymous
    #56009

    Hi,

    I’m having a little problem. I just noted est my search and filter results are displayed using the search.php file. But I want them to be displayed using the template file I created (template-boten.php).

    But when I try to open the page http://sitename.com/boten/ it gives me a blank page (I emptied the search.php page). When copying the template code to the search.php file it all works again.

    But doing this my global search for my site doesn’t work.

    In short:
    – I created a template-boten.php file and a page boten using the template file
    – If the search.php file is empty this doesn’t work
    – If I put the template code back in the search.php file it all works again
    – But then my search doesn’t show the search results
    – I’m using shortcode to show the results in a template file in a folder search-filter

    Trevor
    #56029

    Hi

    It depends on the display results method that you are using. If you are using the shortcode method, then unless your theme has been written specifically for Search & Filter, then it must use the results.php file. To use a template of your choice, you must use the As an Archive method.

    It is possible to edit the results.php file to make it look and feel like a theme template file. I have done and shown this to other users. This is somewhat dependent upon the theme. Some themes make this very hard to do and as such outside of our normal technical support.

    Anonymous
    #56040

    I figured this out. You can mark this question as resolved. It was something stupid I did myself 🙂

Viewing 3 posts - 1 through 3 (of 3 total)