Forums › Forums › Search & Filter Pro › search results appears before chcecking form
Tagged: chceck form, full, search results
- This topic has 5 replies, 2 voices, and was last updated 4 years, 1 month ago by Trevor.
-
Anonymous(Private) November 6, 2020 at 9:31 pm #265527
i’ve created an archieve and several forms to manage it.
It works really pretty but at start (when i open search page) all results apperas (over 1000 now).
I think forms should give results after fill them, but now all forms are basically chcecked by “all” and show huge list of everthing :X so chcecking form rather “exclude” random content.How to turn my search form to show “empty” result at the beginning, and start showing posts after choice form options?
Trevor(Private) November 9, 2020 at 1:55 pm #265638So, using our Shortcode method …
… in which case you should follow the ‘guide to customising’:
Once you have a copy of the
results.php
file in a search-filter sub-folder of your theme, you can edit that file, like this (leave the PHP comments at the top outside and before this code):global $searchandfilter; $sf_current_query = $searchandfilter->get(8702)->current_query(); if ((!$sf_current_query->is_filtered())&&($sf_current_query->get_search_term()=="")) { echo '<div>Nothing to see here folks!</div>'; } else { // the current resuts.php code here }
Anonymous(Private) November 18, 2020 at 9:54 am #266865well it seems to be correct but i didn’t solve my problem with filtering.
i think problem is in search value “All”(displayed as “wszystkie”)
“all” appears automatically as first value and allow to show all posts as result
i rather need to make empty slot at first line, like that:
-[empty]
-all
-condition1
-condition2
…https://archiwumcyfrowe.nsz.com.pl/wyszukaj-zasoby/
is it possible?
-
AuthorPosts