Forums › Forums › Search & Filter Pro › Relevanssi integration not working
Tagged: relevanssi
- This topic has 6 replies, 2 voices, and was last updated 4 years, 6 months ago by Trevor.
-
Anonymous(Private) June 17, 2020 at 7:59 pm #249258
Hi Trevor,
Searching for terms with relevanssi (search field in in page header) loads the results via search.php. Filtering with S&F forgets the search and loads a new page, resulting on a filter on all products instead of the search result. I followed this guide: https://searchandfilter.com/documentation/3rd-party/relevanssi/
And tried all kinds of different settings. I use a custom post type.The search field in the filter bar is from S&F.
Page: https://www.fietspitstop.nl/afdeling/fietsbanden/ . For example, try searching on “big apple”.Can you please help me in the right direction making the filter work on Relevanssi search results?
Thanks,
Roeland van OostenbruggeTrevor(Private) June 18, 2020 at 9:35 am #249282We have received feature requests to allow the one form to be broken into parts to be placed (and styled) in different places (and differently styled) on the page.
We have taken those requests on board for our forthcoming V3 (which we hope to release in summer 2020 – but that may flex a little as we polish the code and UI). For example, you might have a form in WooCommerce that has a Search Box (text field), a Sort Order drop down, and then other fields (Product Categories, Product Tags, Variations, etc). You will be able to place the Search Box in the header, and the Sort Order above the products, and the rest of the form in the sidebar.
But, that is not possible right now.
As to taking a theme search (like one might see in a header or main menu) and directing that to our search form, this is possible, as long as, on the results page, the Search & Filter form also has a text search. Also, on the search results page, the two forms will NOT ‘talk’ to each other (see my earlier comments about splitting the form up).
You need to decide where you want to send the search (either a page with a slug or not), and use a WordPress rewrite in your child theme functions.php file.
There is an example here (the site shown uses a slug name for the search results page, which looks nicer):
Here there is an example of one that doesn’t use a slug:
-
AuthorPosts