'tribe_events',
'author' => $current_user_id,
'posts_per_page' => 20,
'post_status' => array('publish', 'pending', 'draft', 'future'),
'orderby' => 'date',
'order' => 'DESC'
);
$events_query = new WP_Query($args);
?>
render_trainer_menu();
}
// Display breadcrumbs
if (class_exists('HVAC_Breadcrumbs')) {
HVAC_Breadcrumbs::instance()->render();
}
?>
'tribe_events',
'author' => $current_user_id,
'post_status' => 'publish',
'posts_per_page' => -1,
'fields' => 'ids'
)));
$upcoming_count = count(get_posts(array(
'post_type' => 'tribe_events',
'author' => $current_user_id,
'post_status' => 'publish',
'posts_per_page' => -1,
'fields' => 'ids',
'meta_query' => array(
array(
'key' => '_EventStartDate',
'value' => date('Y-m-d H:i:s'),
'compare' => '>='
)
)
)));
$draft_count = count(get_posts(array(
'post_type' => 'tribe_events',
'author' => $current_user_id,
'post_status' => 'draft',
'posts_per_page' => -1,
'fields' => 'ids'
)));
?>
found_posts; ?>
Total Events
have_posts()) : ?>
| Event Title |
Date |
Venue |
Status |
Actions |
have_posts()) : $events_query->the_post();
$event_id = get_the_ID();
$start_date = get_post_meta($event_id, '_EventStartDate', true);
$venue_id = get_post_meta($event_id, '_EventVenueID', true);
$venue_name = $venue_id ? get_the_title($venue_id) : get_post_meta($event_id, '_EventVenue', true);
?>
|
|
|
|
|
|
No Events Yet
You haven't created any training events. Start sharing your expertise with the HVAC community!
Create Your First Event