Support » Plugins and Hacks » [Resolved] [Plugin: Events Manager] Event Template Tags
3 years, 11 months ago
i´m using WP_Query to display events on a page, like this:
$my_query = new WP_Query( array( 'post_type' => 'event' ) );
while ($my_query->have_posts()) : $my_query->the_post();
i can show the event´s categories and title via the_category() & the_title(), but how do i display the event´s date and other fields?
haven´t found a list of the template tags in the documentation.
thanks in advance!
You can use wp_query, the best way is to do this within the loop and use the EM_Event object.
$EM_Event = get_em_event($post);
However, all event values are stored as postmeta as well but with a _ at the start of the meta key e.g. _event_start_time