WP_QUERY Multiple search terms
<p>I am trying to build a better script for my wordpress that will show related posts by splitting the Title of the post and search for posts for each word of the title.</p>

<p>but when I pass the value of <strong>'s'</strong> arg of WP_QUERY as an array of words. It fails and shows the all post of wordpress</p>

<p>I am stuck. Any solution to pass multiple <strong>'s'</strong> values. Thanks in advance..</p>

<pre><code> $search = $_GET['search'];
 $search_terms = preg_split("/[^\w]*([\s]+[^\w]*|$)/", $search, -1, PREG_SPLIT_NO_EMPTY);

            $p_args = array(
                "post_type" =&gt; "post",
                "paged" =&gt; $paged,
                "s" =&gt; $search_terms,
                );

 query_posts($p_args); 
</code></pre>