Forums › Forums › Search & Filter Pro › Alphabetise results and redirect empty search
- This topic has 12 replies, 2 voices, and was last updated 7 years, 5 months ago by
Trevor.
-
Trevor(Private) January 25, 2018 at 12:50 pm #154839
Redirecting an empty search is not a feature of the pro plugin, as the plugin is far more complex.
It IS possible to use PHP to detect if a search has been made though, like this:
global $searchandfilter; $sf_current_query = $searchandfilter->get(1024)->current_query(); if ((!$sf_current_query->is_filtered())&&($sf_current_query->get_search_term()=="")) { echo '<div>Nothing to see here folks!</div>'; } else { // your VC template archive code/loop here }
-
AuthorPosts