Hey katalonian
There is no way to prevent an empty search, but if an empty search is performed then the URL should redirect to the url set in empty_search_url…
Thanks for a quick reply.
I shall put full url to empty_search_url or just a part of url like /page/ ?
Cheers!
No, it doesn’t work for me either way 🙁
It’s weird, because i took away search field, and even if i just press button submit without selecting a categories, it’s still gives a different page. I still can’t realize which page it opens.
UPDATE
It’s opens index.php file, so, i’ll try to handle it. but would be nice if
empty_search_url would work 🙂
Hey katalonian
empty_search_url should be used like this:
[searchandfilter fields="category,post_tag" empty_search_url="http://www.yoursite.com/"]
And when a user performs a search, where there is no selection or search term the page should redirect here…
Can you paste in the shortcode you are using?
🙂