• I am looking for a way to search my posts where if the content has one or more of the keywords OR the meta value is contains one or more of the same keywords. I tried:

    $query = query_posts(array(
    	's' => $searchKeywords,
    	'meta_value' => $searchKeywords
    ));

    $searchKeywords will be a string containing keywords that the user has entered.

    But that doesn’t work, it returns no records all unless both the content and meta_value equal to $searchKeywords.

  • The topic ‘query_post where content OR meta_value contains one of the search keywords’ is closed to new replies.