Forums › Forums › Search & Filter Pro › Stop searching on page load
- This topic has 3 replies, 2 voices, and was last updated 9 years, 7 months ago by Ross.
-
Anonymous(Private) April 2, 2015 at 2:45 pm #14421
Hi,
I have set up my search filter to work on a movie review site. Using the post meta filter to search custom meta keys using the drop down input type. The search function works fine and returns the results perfectly, my only problem is it searches on page load and returns everything. Really need it to stop doing that.Thanks in advance
Ross Moderator(Private) April 2, 2015 at 5:56 pm #14433Hi Denis, what method are you using to display your results, with a shortcode or as archive? (check the “display results” tab)
Thanks
Ross Moderator(Private) April 3, 2015 at 2:48 pm #14509Hi Denis
There is no option to change this but i’ve been considering adding it.
Your best bet for now is to create a separate page, which doesn’t contain the results only the search form – this will give the impression of no loaded results.
Upon using hte search form, the user will be redirected to the real search page – which will then display results. The only thing here is the initial search request won’t be ajax, it will be a redirect to the search page.
An alternative is to hide the container with the results using CSS, then once the first search has been performed, show the container. You could hook into the ajax evens of S&F to do this (first question on FAQs)
http://www.designsandcode.com/wordpress-plugins/search-filter-pro/faqs/
Thanks
-
AuthorPosts