title: wp_query multiple meta keys
body: <p>I want to make a search form using
  Custom fields
  can search the table
  postmeta Show ticks and information search, type the code in the local Host But the site does not load
  I use the XAMPP
  what is the problem?</p>
  
  <p>This is my code</p>
  
  <pre><code>&lt;?php
  $args = array(
      'post_type' =&gt; 'house',
      'meta_query' =&gt; array(
          array(
              'key' =&gt; 'city',
              'value' =&gt; $_GET["city"],
              'compare' =&gt; 'LIKE',
          ),
          array(
              'key' =&gt; 'part',
              'value' =&gt; $_GET["part"],
              'compare' =&gt; 'LIKE',
          ),
          array(
              'key' =&gt; 'statuss',
              'value' =&gt; $_GET["statuss"],
              'compare' =&gt; 'LIKE',
          ),
          array(
              'key' =&gt; 'typee',
              'value' =&gt; $_GET["typee"],
              'compare' =&gt; 'LIKE',
          ),
          array(
              'key' =&gt; 'statuss',
              'value' =&gt; $_GET["statuss"],
              'compare' =&gt; 'LIKE',
          ),
          array(
              'key' =&gt; 'rooms',
              'value' =&gt; $_GET["rooms"],
              'compare' =&gt; 'LIKE',
          ),
          array(
              'key' =&gt; 'wcss',
              'value' =&gt; $_GET["wcss"],
              'compare' =&gt; 'LIKE',
          ),
          array(
              'key' =&gt; 'metr',
              'value' =&gt; $_GET["metr"],
              'compare' =&gt; 'LIKE',
          ),
          array(
              'key' =&gt; 'minip',
              'value' =&gt; $_GET["minip"],
              'compare' =&gt; 'LIKE',
          ),
          array(
              'key' =&gt; 'maxp',
              'value' =&gt; $_GET["maxp"],
              'compare' =&gt; 'LIKE',
          ),
          array(
              'key' =&gt; 'tabaghe',
              'value' =&gt; $_GET["tabaghe"],
              'compare' =&gt; 'LIKE',
          ),
          array(
              'key' =&gt; 'rahn',
              'value' =&gt; $_GET["rahn"],
              'compare' =&gt; 'LIKE',
          ),
          array(
              'key' =&gt; 'ejareh',
              'value' =&gt; $_GET["ejareh"],
              'compare' =&gt; 'LIKE',
          )
      )
  );
  $all_posts = new WP_Query($args);
  if ($all_posts-&gt;have_posts()) :?&gt;
      &lt;div class="titSearchHouse"
           style="text-align: center;width: 150px;margin: 12px auto 0;background: #d0d0d0;color: #FFFFFF;font-family: 'B Yekan';padding: 10px"&gt;
          display results
      &lt;/div&gt;
      &lt;div class="parti"&gt;
          &lt;?php while ($all_posts-&gt;have_posts()):$all_posts-&gt;the_post(); ?&gt;
              &lt;!--start post wrapper--&gt;
              &lt;a class="post-link" href="&lt;?php echo get_the_permalink(); ?&gt;"&gt;
                  &lt;div class="post wow fadeInUp"&gt;
                      &lt;div class="post-inner"&gt;
                          &lt;div class="post-thumb"&gt;
                              &lt;?php echo get_the_post_thumbnail($all_posts-&gt;post-&gt;ID, 'main-thumbnail'); ?&gt;
                          &lt;/div&gt;
                          &lt;span
                              class="post-title"&gt;&lt;?php echo get_the_title($all_posts-&gt;post-&gt;ID); ?&gt;&lt;/span&gt;
                      &lt;/div&gt;
                      &lt;div class="post-meta"&gt;
                                                              &lt;span&gt;&lt;i
                                                                      class="fa fa-clock-o"&gt;&lt;/i&gt;&lt;?php echo get_the_date('Y-m-d', $all_posts-&gt;post-&gt;ID); ?&gt;&lt;/span&gt;
                          &lt;span&gt;&lt;i class="fa fa-user"&gt;&lt;/i&gt;&lt;?php echo get_the_author(); ?&gt;&lt;/span&gt;
                          &lt;span&gt;&lt;i class="fa fa-thumbs-o-up"&gt;&lt;/i&gt;506&lt;/span&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/a&gt;
              &lt;!--end post wrapper--&gt;
          &lt;?php endwhile; ?&gt;
      &lt;/div&gt;
      wp_reset_postdata();
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>thankyou</p>