title: Wordpress meta_query LIKE compare values from an array
body: <p>I have a script that looks like this:</p>
  
  <pre><code>  foreach($target_zips as $zipcode) {
  
        $query_adresses = array (
          'order'     =&gt; 'ASC',
          'cat'       =&gt; $_GET["cat"],
          'post_type'=&gt; 'adressen',
          'posts_per_page'   =&gt; '-1',
          'meta_query' =&gt; array(
              array(
                  'key'     =&gt; 'postcode',
                  'value'   =&gt; $zipcode,
                  'compare' =&gt; 'LIKE',
              )
          )
        );
  
        $results = get_posts( $query_adresses );
  
        $matched_adresses[] = $results;
  
    }
  </code></pre>
  
  <p>A script that goes through an array of values, then queries a lot of posts to see if there's posts that match meta_query. This is terribly slow. Is it possible to put an array of values in this meta_query instead of querying over and over again for each value in <code>$target_zips</code>?</p>