0

I'm having a tough time finding an answer to this question, but searching for the term "search" kind of throws a wrench in everything.

OK so I have a search page where I'm asking the user to enter the words they want to search for. Then I have a dropdown that says "match ALL words" or "match ANY words" - I see this all the time in forum software. How do I adjust the WordPress query to do this? WordPress only seems to have the s = 'your search string', where I might want it to be something like an array of terms... s = array('your', 'search', 'string') to find posts with any of those words in them.

My question is similar to this one Multiple keyword search, but there are no answers, so I'm still looking for help!

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.