Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author DesignsAndCode

    (@designsandcode)

    Hey Henrik

    If you use the default WP search box, and submit a blank search, you get a URL like this:

    www.yoursite.com/?s=

    Depending on your theme & setup, this will load the blog page or your homepage, or a search results page.

    What happens if you go to:

    https://www.domain.com/?post_types=post,page&s=

    ?

    If this loads your search page then you can force the plugin to also add a “?s=” to the url just like WP does – check the changelog, the latest update added a new attribute:

    add_search_param

    so in your shortcode add add_search_param="1" and this should hopefully help you? ??

    Thread Starter hohisse

    (@hohisse)

    What happens if you go to:https://www.domain.com/?post_types=post,page&s=

    It does load the blog page. ??

    I’ve switched theme to Twenty Twelve and Twenty Thirteen and here again it’s the blog page coming up.

    Plugin Author DesignsAndCode

    (@designsandcode)

    For me, on the 2013 and 2014 theme, if I goto:

    https://www.domain.com/?s=

    Then I get a search results page

    Is this not what happens for you?

    Do you have a link I could look at? ??

    Plugin Author DesignsAndCode

    (@designsandcode)

    Marking as resolved, let me know if it is not!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hit the SEARCH button with an empty search field’ is closed to new replies.