title: Wordpress meta_query not returning results
body: <p>I want a query that returns CPT posts that contains the user's input (which is $text).</p>
  
  <p>Inserting meta_key and meta_value works well but putting it in a meta_query array doesn't return anything. I want to be able to search in multiple custom fields. It's a theme I made from scratch so there is no plugins and the functions.php file is pretty small so I don't think it could be a conflict.</p>
  
  <p>Code for meta_key and meta_value in the query declaration (working): </p>
  
  <pre><code>$searchquery = new WP_Query( 
      array( 'post_type' =&gt; 'offre',
             'meta_key' =&gt; 'offre_employeur',
             'meta_value' =&gt; $text, 
             'meta_compare'=&gt; 'LIKE' ) 
  );
  </code></pre>
  
  <p>Code for meta_value array (not working):</p>
  
  <pre><code>$meta_query_args = array(
      'relation' =&gt; 'OR',
      array(
          'key'     =&gt; 'offre_employeur',
          'value'   =&gt; $text,
          'compare' =&gt; 'LIKE'
      ),  array(
          'key'     =&gt; 'offre_titre',
          'value'   =&gt; $text,
          'compare' =&gt; 'LIKE'
      )
  );
  $searchquery = new WP_Query(array('post_type' =&gt; 'offre'));
  $searchquery-&gt;set('meta_query', $meta_query_args);
  </code></pre>
  
  <p>Code for the second way I tried but still no results (not working)</p>
  
  <pre><code>     $args = array(
         'post_type' =&gt; 'offre',
          'posts_per_page' =&gt; -1,
          's' =&gt; $text,
          'meta_query' =&gt; array(
              array(
                  'key' =&gt; 'offre_employeur',
                  'value' =&gt; $text,
                  'compare' =&gt; 'LIKE'
              ),
                array(
                  'key' =&gt; 'offre_titre',
                  'value' =&gt; $text,
                  'compare' =&gt; 'LIKE'
              )
          )
      );
  
  
      $searchquery = new WP_Query($args);
  </code></pre>
  
  <p>Thank you in advance for your time.</p>