Forums Forums Search & Filter Pro Search Form Outside the Loop

Viewing 5 posts - 1 through 5 (of 5 total)
  • Anonymous
    #162155

    We have purchased Search and Filter Pro and are in the process of adding it’s functionality to the existing search function on our development site. We also want to use the plugin on our category pages to provide content filtering options, but right now are struggling to get the search to work properly.

    After searching through the forums, I have followed the suggestion found here: https://support.searchandfilter.com/forums/topic/keep-the-search-request/#post-137639 to keep our existing search form and have Search and Filter “take over” the results so that they will work with the filters on the search page. However, the form will not load the results page, possibly because the form itself appears outside the page loop.

    Question: is it possible to have the form appear outside the loop? This site has a global search function that we would like to then filter the results, so placing the form inside the loop doesn’t make sense – it’s in the header.php file. Is what we’re trying to do outside the context of this plugin, or is there another way in which we could make this work?

    I appreciate the help!

    Anonymous
    #162156

    I should clarify that I arrived at the possibility that the loop is the cause by putting a duplicate form inside the loop on the homepage and applying the solution offered in that thread. This worked – it’s just the global search form in the header that I am struggling with.

    Trevor
    #162186
    This reply has been marked as private.
    Anonymous
    #162455
    This reply has been marked as private.
    Trevor
    #162496

    OK, so that was a quick Skype call. You had to create a page called search and make the form action point to that, and also the name to be _sf_s for the form. I will mark this as resolved for now.

    If you need anything else, please do not hesitate to make a new thread.

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