WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a custom search where I want to enter a keyword or phrase into the search box, and then by pressing enter it adds it to a 'search storage' (already coded, see below). Asume I have 3 posts, one about cars, another and bikes and the final about planes. When this search is made I want all three to display in the results. Currently it would not find anything because there are no posts that contain car, bike and plane keywords individually.

Is it possible to display posts that match each of these keywords? Would I need to do a wp_query() for each keyword maybe, inside a foreach? Or is there a cleaner way?


share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.