I’m using a custom loop to display my events on a page, I get it fine ordering by the event start date using the below:
$args = array(
'post_type' => 'event',
'order' => 'ASC',
'orderby' => 'meta_value',
'meta_key' => '_event_start_date');
$loop = new WP_Query( $args );
But the meta_key option only allows one value. How to use two values (_event_start_date
and _event_start_time
)?