Forums › Forums › Search & Filter Pro › Search Form Outside the Loop
Tagged: global search, the loop
- This topic has 4 replies, 2 voices, and was last updated 8 years, 1 month ago by
Trevor.
-
Anonymous(Private) February 26, 2018 at 3:52 pm #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(Private) February 26, 2018 at 3:54 pm #162156I 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(Private) February 27, 2018 at 5:13 pm #162496OK, so that was a quick Skype call. You had to create a page called
searchand make the form action point to that, and also the name to be_sf_sfor the form. I will mark this as resolved for now.If you need anything else, please do not hesitate to make a new thread.
-
AuthorPosts