Forums › Forums › Search & Filter Pro › empty results by default
- This topic has 5 replies, 2 voices, and was last updated 5 years, 5 months ago by
Trevor.
Viewing 6 posts - 1 through 6 (of 6 total)
-
Trevor(Private) July 29, 2020 at 3:11 pm #254383
Are you using our Shortcode Display Results method. If not, you would need to be using a method that uses a (simple) theme PHP template and be abel to add code like this (the ID number needs to match your form):
global $searchandfilter; $sf_current_query = $searchandfilter->get(1234)->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 (filtered) posts output code here }Trevor(Private) July 29, 2020 at 3:35 pm #254399Then edit the results.php file, as described here:
https://searchandfilter.com/documentation/search-results/using-a-shortcode/#customising-the-results
The code already there needs to be cut and placed inside the code I just gave you.
-
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)