Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.