<?php
/**
* I want to get this query to also desplay events that are on the current day.
* Any Ideas on how I can do that?
* I added '>=' instead of '>' but it did not do anything.
* I assume time() does not work when comparing to date becuase the date starts at 0:00, so anytime on the current day will be past 0:00
*/
$args = array(
'post_type' => 'event',
'meta_key' => '_event_date',
'orderby' => 'meta_value_num',
'order' => 'asc',
'meta_query' => array(array(
'key' => '_event_date',
'value' => mktime(0,0,1,date("n"),date("j"),date("Y")),
'compare' => '>'
)),
);
$events = new WP_Query($args);
get_header(); ?>