title: Custom search query on Wordpress page not working
body: <p>I have made a custom page for an university website where all the available scholarships are listed. User can specify city, degree, intake, scholarship type and language to search for universities with available scholarships. For this I've used advanced custom field and custom post type UI plugins and added custom fields to get data from the admin. I've tried to show the data in a tabular form in that page and it is showing the way I want to. But the problem is when i try to use the filter option for any of the above criteria(city, degree, intake, scholarship type and language) I'm getting no results but the table remains the same (The table should show the filtered data, but it isn't). I tried checking the <code>$args</code> and all the selected parameters are there. you can check the output results here <a href="https://pastebin.com/Xgmja3Yj" rel="nofollow noreferrer">https://pastebin.com/Xgmja3Yj</a></p>
  <p>here's my code</p>
  <pre><code>&lt;?php
  
  /**
   * Template Name: Scholarship Page
   *
   * @package HelloElementor
   */
  
  if (!defined('ABSPATH')) {
    exit; // Exit if accessed directly.
  }
  
  get_header();
  
  ?&gt;
  
  
  &lt;div class=&quot;container&quot;&gt;
    &lt;h4 class=&quot;lesson-title&quot;&gt;Browse and Apply for Scholarships&lt;/h4&gt;
    &lt;form action=&quot;#&quot; method=&quot;get&quot;&gt;
  
      &lt;select name=&quot;city&quot;&gt;
        &lt;!-- &lt;option value=&quot;&quot;&gt;Select city/province&lt;/option&gt; --&gt;
        &lt;option value=&quot;zhejiang&quot;&gt;Zhejiang&lt;/option&gt;
        &lt;option value=&quot;zhengzhou&quot;&gt;Zhengzhou&lt;/option&gt;
        &lt;option value=&quot;tshinghua&quot;&gt;Tshinghua&lt;/option&gt;
        &lt;option value=&quot;peking&quot;&gt;Peking&lt;/option&gt;
      &lt;/select&gt;
  
      &lt;select name=&quot;scholarship_type&quot;&gt;
        &lt;option value=&quot;partial&quot;&gt;Partial&lt;/option&gt;
        &lt;option value=&quot;full&quot;&gt;Full&lt;/option&gt;
      &lt;/select&gt;
  
      &lt;select name=&quot;degree&quot;&gt;
        &lt;option value=&quot;bachelor&quot;&gt;Bachelor&lt;/option&gt;
        &lt;option value=&quot;masters&quot;&gt;Masters&lt;/option&gt;
        &lt;option value=&quot;phd&quot;&gt;PHD&lt;/option&gt;
      &lt;/select&gt;
  
      &lt;select name=&quot;language&quot;&gt;
        &lt;option value=&quot;&quot;&gt;Select Language&lt;/option&gt;
        &lt;option value=&quot;english&quot;&gt;English&lt;/option&gt;
        &lt;option value=&quot;chinese&quot;&gt;Chinese&lt;/option&gt;
      &lt;/select&gt;
  
      &lt;select name=&quot;intake&quot;&gt;
        &lt;option value=&quot;&quot;&gt;Select Intake&lt;/option&gt;
        &lt;option value=&quot;summer&quot;&gt;Summer&lt;/option&gt;
        &lt;option value=&quot;winter&quot;&gt;Winter&lt;/option&gt;
        &lt;option value=&quot;autumn&quot;&gt;Autumn&lt;/option&gt;
      &lt;/select&gt;
      &lt;button type=&quot;submit&quot; name=&quot;&quot;&gt;Search&lt;/button&gt;
    &lt;/form&gt;
  
  &lt;?php
  if ($_GET['city'] &amp;&amp; !empty($_GET['city'])) {
    $city = $_GET['city'];
  }
  
  if ($_GET['scholarship_type'] &amp;&amp; !empty($_GET['scholarship_type'])) {
    $scholarship_type = $_GET['scholarship_type'];
  }
  
  if ($_GET['degree'] &amp;&amp; !empty($_GET['degree'])) {
    $degree = $_GET['degree'];
  }
  
  if ($_GET['language'] &amp;&amp; !empty($_GET['language'])) {
    $language = $_GET['language'];
  }
  
  if ($_GET['intake'] &amp;&amp; !empty($_GET['intake'])) {
    $intake = $_GET['intake'];
  }
  $args = array(
    'post_type' =&gt; 'scholarships',
    'posts_per_page' =&gt; -1,
    // 'orderby' =&gt; 'meta_value',
    'order' =&gt; 'ASC',
    'meta_query' =&gt; array(
      'relation' =&gt; &quot;OR&quot;,
      array(
        'key' =&gt; 'cityprovince',
        'value' =&gt; $city,
        'compare' =&gt; '='
      ),
  
      array(
        'key' =&gt; 'scholarship',
        'value' =&gt; $scholarship_type,
        'compare' =&gt; '='
      ),
  
      array(
        'key' =&gt; 'degree',
        'value' =&gt; $degree,
        'compare' =&gt; '='
      ),
  
      array(
        'key' =&gt; 'language',
        'value' =&gt; $language,
        'compare' =&gt; 'LIKE'
      ),
  
      array(
        'key' =&gt; 'intake',
        'value' =&gt; $intake,
        'compare' =&gt; 'LIKE'
      )
    )
  );
    
    $query = new WP_Query($args);
    
    // echo var_dump($args);
    // echo &quot;&lt;br&gt;&quot;;
    // echo &quot;&lt;br&gt;&quot;;
    ?&gt;
    &lt;div class=&quot;post clearfix&quot;&gt;
      &lt;table style=&quot;width:100%&quot;&gt;
        &lt;tr&gt;
          &lt;th&gt;Name&lt;/th&gt;
          &lt;th&gt;City/Province&lt;/th&gt;
          &lt;th&gt;Major&lt;/th&gt;
          &lt;th&gt;Program ID&lt;/th&gt;
          &lt;th&gt;Degree&lt;/th&gt;
          &lt;th&gt;Language&lt;/th&gt;
          &lt;th&gt;Intake&lt;/th&gt;
          &lt;th&gt;Scholarship&lt;/th&gt;
          &lt;th&gt;Total Amount&lt;/th&gt;
        &lt;/tr&gt;
        &lt;?php
        while ($query-&gt;have_posts()) : $query-&gt;the_post();
        //echo var_dump($query);
        ?&gt;
          &lt;tr&gt;
            &lt;td&gt;&lt;?php the_title(); ?&gt;&lt;/td&gt;
            &lt;td&gt;&lt;?php the_field('cityprovince'); ?&gt;&lt;/td&gt;
            &lt;td&gt;&lt;?php the_field('major'); ?&gt;&lt;/td&gt;
            &lt;td&gt;&lt;?php the_field('program_id'); ?&gt;&lt;/td&gt;
            &lt;td&gt;&lt;?php the_field('degree'); ?&gt;&lt;/td&gt;
            &lt;td&gt;&lt;?php the_field('language'); ?&gt;&lt;/td&gt;
            &lt;td&gt;&lt;?php the_field('intake'); ?&gt;&lt;/td&gt;
            &lt;td&gt;&lt;?php the_field('scholarship'); ?&gt;&lt;/td&gt;
            &lt;td&gt;&lt;?php the_field('total_amount'); ?&gt;&lt;/td&gt;
          &lt;/tr&gt;
        &lt;?php endwhile;
        wp_reset_query(); ?&gt;
      &lt;/table&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;?php get_footer(); ?&gt;
  </code></pre>
  <p>The <code>key</code> in <code>meta_query</code> are the field name in ACF. So any suggestions?</p>