'tribe_events', 'author' => $current_user_id, 'posts_per_page' => 20, 'post_status' => ['publish', 'pending', 'draft', 'future'], 'orderby' => 'date', 'order' => 'DESC' ]; $events_query = new WP_Query($args); ?>
render_trainer_menu(); } // Display breadcrumbs if (class_exists('HVAC_Breadcrumbs')) { echo HVAC_Breadcrumbs::instance()->render_breadcrumbs(); } ?>

My Training Events

+ Create New Event
'tribe_events', 'author' => $current_user_id, 'post_status' => 'publish', 'posts_per_page' => -1, 'fields' => 'ids' ])); $upcoming_count = count(get_posts([ 'post_type' => 'tribe_events', 'author' => $current_user_id, 'post_status' => 'publish', 'posts_per_page' => -1, 'fields' => 'ids', 'meta_query' => [ [ 'key' => '_EventStartDate', 'value' => date('Y-m-d H:i:s'), 'compare' => '>=' ] ] ])); $draft_count = count(get_posts([ 'post_type' => 'tribe_events', 'author' => $current_user_id, 'post_status' => 'draft', 'posts_per_page' => -1, 'fields' => 'ids' ])); ?>
found_posts; ?>
Total Events
Published
Upcoming
Drafts
have_posts()) : ?>
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); ?>
Event Title Date Venue Status Actions

No Events Yet

You haven't created any training events. Start sharing your expertise with the HVAC community!

Create Your First Event