Get meta_query terms to work like default search term
-
I have a few custom fields (with ACF) to search through but default behavior will look for
%phrase match%
, what I need is anAND
operator between terms, like this%phrase%
AND
%match%
, just like the default WordPress search parameter (but with and operator).I tried exploding the string by spaces and looping through the
meta_query
and actually it works but it results in a very heavy query that will take minutes to load the page with more than 4/5 terms in it which is not acceptable.What would be a possible solution? Is there a relevanssi feature/workaround for this?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Get meta_query terms to work like default search term’ is closed to new replies.