title: WP_query Filter through meta_key and meta_value
body: <p>So far this is working by filtering through and only displaying the 'sessions' 'Fall' items. </p>
  
  <pre><code>&lt;?php       
      $the_query = new WP_Query( array( 
              'post_type' =&gt; 'classes',
              'meta_key' =&gt; 'sessions'
              'meta_value' =&gt; 'Fall',
              'posts_per_page' =&gt; -1
              ));
  
      while ($the_query-&gt;have_posts()) :
      $the_query-&gt;the_post(); 
  ?&gt;
  </code></pre>
  
  <p>But I want it to also filter and only display items that are in the "fall" and at "Monon Community Center" </p>
  
  <pre><code>'meta_key' =&gt; 'location_select',
  'meta_value' =&gt; 'Monon Community Center',
  </code></pre>
  
  <p>How can I accomplish this?</p>
  
  <p>I also tried this and it did not work </p>
  
  <pre><code>                        $the_query = new WP_Query( array( 
              'post_type' =&gt; 'classes',
              'meta_query' =&gt; array(
                          'relation' =&gt; 'AND',
                          array(
                                  'meta_key' =&gt; 'location_select',
                                  'meta_value' =&gt; 'Monon Community Center',
                                  'compare' =&gt; '='),
                          array(
                                  'meta_key' =&gt; 'sessions',
                                  'meta_value' =&gt; 'fall',
                                  'compare' =&gt; '='),
                          'posts_per_page' =&gt; -1
                  )
                  ));
          while ($the_query-&gt;have_posts()) :
          $the_query-&gt;the_post(); 
  </code></pre>