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, 7 months ago by
Trevor.
-
Trevor(Private) November 9, 2020 at 1:55 pm #265638
So, 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