WP_Query Search Parameter for ANY words
-
Hello,
For the past few hours I have been searching/ trying to think of how to get WordPress’s search parameter, ‘s’, to show results if ANY of the keywords match. Not only if they all do.
Short of custom SQL, is there any way to do this with the WP_Query?
I was thinking of exploding the searched phrase then looping through the search for each word, then merging the arrays. But all the code I tried writing ended up broken.
Any help is GREAAAATLY appreciated.
Thanks!
Andrew
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘WP_Query Search Parameter for ANY words’ is closed to new replies.