title: search query for post title
body: <p>I want to search WordPress custom post type by post_title and i am using     </p>
  
  <pre><code>$spot_args = array(
              "post_type" =&gt; "spot",
              "post_status" =&gt; "publish",
              "posts_per_page" =&gt; -1,
              "meta_query" =&gt; $meta_build //array that contain meta condition
          );  
  $wp_query = new WP_Query($spot_args);
  </code></pre>
  
  <p>Now how to add filter for post_title,
  Not effect of using </p>
  
  <pre><code>add_filter('posts_where', 'post_title_condition');
  function post_title_condition($where) {
      global $wpdb;
      where .= ' OR ' . $wpdb-&gt;posts . 'post_title LIKE %' . $title. '% ';
      $where;
  }
  </code></pre>
  
  <p>so any way ??</p>