Forums Forums Search & Filter Pro Work with native search form

Viewing 2 posts - 1 through 2 (of 2 total)
  • Anonymous
    #232593

    So… I am trying to get a basic search field (in a header) to work with a sidebar filter to end up in woocommerce styled pages (the sidebar is not everywhere). Problem one is S&F says I can’t have two different forms that two different forms that use the Woocommerce Shop Display Results option — why not?

    In any case, I pretty much got a native search form to work in the header and direct to a woocommerce archive page by redirecting the search to my catalog page which has the sidebar filter. However, it doesn’t work with the sidebar filter. So, I can search, but all the filters ignore the search term.

    How can I get the filters to honor (and remember) the query results that the user entered from a WP search? Or how can I have two different forms end up in the same place?

    The only thing I can think of would be to add a search to the sidebar and then pre-populate the field with a get_search_query(). But that seems overly hacky to me.

    Trevor
    #232598

    The easiest would be to use a WordPress rewrite. This post might help:

    https://support.searchandfilter.com/forums/topic/integrate-with-theme-search/#post-207270

Viewing 2 posts - 1 through 2 (of 2 total)