WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Event Template Tags (3 posts)

  1. floflofloflo
    Member
    Posted 1 year ago #

    Hi,
    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!
    flo

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 1 year ago #

    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

  3. floflofloflo
    Member
    Posted 1 year ago #

    thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic