Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ross Morsali

    (@designsandcode)

    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

    Thread Starter katalonian

    (@katalonian)

    Thanks for a quick reply.
    I shall put full url to empty_search_url or just a part of url like /page/ ?
    Cheers!

    Thread Starter katalonian

    (@katalonian)

    No, it doesn’t work for me either way 🙁

    Thread Starter katalonian

    (@katalonian)

    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 🙂

    Plugin Author Ross Morsali

    (@designsandcode)

    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?

    🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Prevent from empty search’ is closed to new replies.