If you store the event start date in _event_start_date
, then you can check the value of this field against current date:
if (strtotime(get_post_meta($id, '_event_start_date', true)) > time()){
// future event
} else {
// past event
}
If you store the event start date in _event_start_date
, then you can check the value of this field against current date:
if (strtotime(get_post_meta($id, '_event_start_date', true)) > time()){
// future event
} else {
// past event
}