Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Get meta_query terms to work like default search term

$
0
0

Replies: 0

I have a few custom fields (with ACF) to search through but default behavior will look for %phrase match%, what I need is an AND 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 all articles
Browse latest Browse all 59525

Trending Articles