Forums › Forums › Search & Filter Pro › How to not show results in first search + translate "Older/ newer posts"
- This topic has 19 replies, 3 voices, and was last updated 8 years, 1 month ago by Ross.
-
Ross Moderator(Private) November 8, 2016 at 6:39 pm #69273
Hey Kevin
Sorted it!
Basically what you had done was correct…
is_filtered
returns true if a filter has been selected.This is not true for the search term though, as its not regarded as a filter (perhaps it should be now that I think about it)…
So what I did was also add a condition to see if a user had typed a search term to your template, and now it works as expected –
$sf_current_query->get_search_term()==""
Best
-
AuthorPosts