title: Run a wp meta query arg for each item in an array
body: <p>So I have this array with a list of values, and I'm trying to check it against a wp-post and find the cheapest.</p>
  
  <p>So far I have this</p>
  
  <pre><code>  $sources = array("source 1", "source 2", "source 3", "source 4");
  
    foreach($sources as $source) {
    $args .= array(
      'post_type' =&gt; 'streaming-service-db',
      'meta_query' =&gt; array(
          array(
              'key' =&gt; 'guidebox_source',
              'value' =&gt; $source,
              'compare' =&gt; '=',
          ),
      ),
  );  
  }               
  $query = new WP_Query($args);               
  if($query-&gt;have_posts()) : 
      while($query-&gt;have_posts()) : 
          $source_id = get_the_ID();  
          $price = get_field( 'cost' , $source_id);           
          if ( get_field( 'cost' , $source_id) ==  min($price) ){
              echo get_title($source_id)." is the cheapest at". get_field( 'cost' , $source_id);
          } 
           break; 
      endwhile;
  endif;
  wp_reset_query();
  </code></pre>
  
  <p>So I know its completely wrong and wouldn't work as is, but it should give a better idea of what im trying to do.</p>
  
  <p>Start with an array $sources</p>
  
  <p>Find the $source_id by looking up the meta key value "guidebox_source"</p>
  
  <p>Get their prices using get_field( 'cost' , $source_id)</p>
  
  <p>And compare the prices to find the lowest.</p>