title: Multiple value query custom fields WP
body: <p>I m trying to implement a query on my wordpress. I want display post_type "enseignement" with two filters </p>
  
  <ol>
  <li>"cycle"</li>
  <li>"lieu"</li>
  </ol>
  
  <p>This code works  </p>
  
  <pre><code>&lt;?php if($_GET['cycle'] &amp;&amp; !empty($_GET['cycle']))
  {
  $cycle = $_GET['cycle'];
  } else {
  }
  if($_GET['lieu'] &amp;&amp; !empty($_GET['lieu']))
  {
  $lieu = $_GET['lieu'];
  } else {
  }
  ?&gt;
  
  &lt;?php
                  $args = array(
                  'post_type' =&gt; 'enseignement',
                  'posts_per_page' =&gt; 10,
                  'meta_query' =&gt; array(
                           'relation' =&gt; 'AND',
                          array(
                              'key' =&gt; 'cycle', // name of custom field
                              'value' =&gt; $cycle, // matches exactly "red"
                              'compare' =&gt; 'LIKE',
                                                          ),
                  array(
                       'key'     =&gt; 'lieu',
                       'value'   =&gt; $lieu,
                       'compare' =&gt; 'LIKE',
  
           ),
      ),
  
  
                  );
              $loop = new WP_Query( $args );
              while ( $loop-&gt;have_posts() ) : $loop-&gt;the_post(); ?&gt;
              &lt;?php get_template_part( 'content', 'enseignement', get_post_format() );?&gt;
              &lt;?php endwhile; ?&gt;
  </code></pre>
  
  <p>I have url like this this /?cycle=cycle1&amp;lieu=paris</p>
  
  <p>But if I want multiple "cycle" or multiple "lieu" like this /?cycle=cycle1,cycle2&amp;lieu=paris,marseille I doesn't work.</p>
  
  <p>How I can fix that ?</p>