- This topic has 1 reply, 2 voices, and was last updated 6 years, 2 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Work with native search form
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.
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