WP Query Events
// WP_Query arguments
$args = array(
'name' => 'event',
'post_type' => array( 'event' ),
'post_status' => array( 'scheduled' ),
'nopaging' => true,
'order' => 'ASC',
'orderby' => 'title',
'tax_query' => array(
array(
'taxonomy' => 'art_exhibition',
'field' => 'term_id',
),
array(
),
),
'meta_query' => array(
'relation' => 'AND',
array(
'key' => 'start_date',
'value' => 'now',
'compare' => '>=',
'type' => 'DATE',
),
array(
'key' => 'start_time',
'compare' => 'EXISTS',
'type' => 'TIME',
),
),
);
// The Query
$query = new WP_Query( $args );