array( 'mep_events' ),
'posts_per_page' => -1,
'tax_query' => array(
array(
'taxonomy' => 'mep_org',
'field' => 'term_id',
'terms' => $term_id
)
)
);
$loop = new WP_Query( $args_search_qqq );
while ($loop->have_posts()) {
$loop->the_post();
$event_meta = get_post_custom(get_the_id());
$time = strtotime($event_meta['event_start_date'][0].' '.$event_meta['event_start_time'][0]);
$newformat = date('Y-m-d H:i:s',$time);
if(time() < strtotime($newformat)){
$start_datetime = $event_meta['event_start_date'][0].' '.$event_meta['event_start_time'][0];
$start_date = $event_meta['event_start_date'][0];
$start_time = $event_meta['event_start_time'][0];
$end_datetime = $event_meta['event_end_date'][0].' '.$event_meta['event_end_time'][0];
$end_date = $event_meta['event_end_date'][0];
$end_time = $event_meta['event_end_time'][0];
?>