- This topic has 6 replies, 2 voices, and was last updated 6 years, 2 months ago by .
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Is it possible not to display articles initially
Ah. Ok, here is what to do:
global $searchandfilter;
$sf_current_query = $searchandfilter->get(1120)->current_query();
if ((!$sf_current_query->is_filtered())&&($sf_current_query->get_search_term()=="")) {
echo '<div>Nothing to see here folks!</div>';
} else {
// your current results template code here - the if have posts bit.
}