title: Combining meta_query and tax_query to fetch all future events (custom post)
body: <p>I am using this WP query to fetch just the future events but the query returns all the events, even the past ones. What am I doing wrong? The date format is the same (j F Y) of the one coming from the ACF custom field and the tax_query is working because only the events belonging to the specified location are fetched (location_categories).</p>
  <pre><code>$events = array(
              'post_type' =&gt; 'event',
              'post_status'=&gt;'publish',
              'meta_key' =&gt; 'event_start_date',
              'orderby' =&gt; 'meta_value',
              'order' =&gt; 'DESC',
              'posts_per_page'=&gt;'6',
              'paged' =&gt; $paged,
              'tax_query' =&gt; array(
                  array(
                      'taxonomy' =&gt; 'location_categories',
                      'field' =&gt; 'term_id',
                      'terms' =&gt; get_field('choose_event_location',$page_id)
                  )
              ),
              'meta_query' =&gt; array(
                  array(
                      'key' =&gt; 'event_start_date', 
                      'value' =&gt; date(&quot;j F Y&quot;), 
                      'compare' =&gt; '&gt;=', 
                      'type' =&gt; 'DATE'
                  )
              )
          );
  
  $loop = new WP_Query($events);
  </code></pre>