title: WordPress - Search posts by Taxonomy
body: <p>My custom wp search query in </p>
  
  <pre><code>$args = array(
          'post_type' =&gt; 'post',
          'taxonomy'  =&gt; 'location',
          'field' =&gt; 'name',
          'posts_per_page' =&gt; 10,
          'term' =&gt; $keyword,
      );
  $wp_query = new WP_Query($args);
  </code></pre>
  
  <p>I have 2 post which location is London and oxford,london .Now when i search london then it show only 1 post**(1st one)** .Also when i search oxford then it show no result found.</p>
  
  <p>When i search oxford london then its working fine.</p>