Forums › Forums › Search & Filter Pro › Hide Posts if nothing is selected, then show them
- This topic has 20 replies, 2 voices, and was last updated 4 years, 9 months ago by Anonymous.
-
Trevor(Private) January 10, 2020 at 12:24 pm #230649
Ah, OK, then you should be able to modify that with this snippet:
global $searchandfilter; $sf_current_query = $searchandfilter->get(5437)->current_query(); if ((!$sf_current_query->is_filtered())&&($sf_current_query->get_search_term()=="")) { // output what you want to show when no filter has been used } else { // output what you want to show when a filter has been used }
-
AuthorPosts