I did testing. If I keep my bricks URL search parameter as “s” it works. but the bricks options says “Define a unique, more readable URL parameter name for this filter.” I’m not sure is there a way to define a unique bricks parameter here and then do I try to update the “s” in WP? Or is there some other filter that can be used?
I’m trying to use your code snippet to get Relevanssi working with Bricks Builder’s query loop search, but I’m hitting a confusing problem.
About the element ID - In your example, you use $element_id = '56f380'.
I’m not exactly sure where this ID comes from or how to find the right one for my Query Loop.
Could you explain exactly where to get this value? I tried using the ID of the looped element (a card).
I also tried without your code snippet. You explained that it was possible if we set the Bricks search filter’s URL parameter to ‘s’. That doesn’t work for me. But if I set the URL parameter to something else than ‘s’ - for example ‘text_search’ - and then do a search, the results don’t show up.
BUT if I then manually change the URL from ?text-search=my-search-query to ?s=my-search-query, I get the correct results. So I know Relevanssi is working and is indexing my ACF fields and taxonomies.
So it only works when Bricks is NOT using ‘s’ as the query parameter, and I have to manually change the URL for results to show up.
I really don’t know what to try next. I’m so confused.
I would really appreciate any help you can give me on how to get this working.
Thanks for your reply… I was not able to get it to work. But I got a different solution from Jenn that searches on a posts meta-data - including all the ACF fields. So no need to use Relevanssi.
Jenn also told me that the Bricks team is currently working on an implementation of “search criteria” that will cover a lot of the same areas as Relevanssi: Roadmap – Bricks