The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. floflofloflo
    Posted 3 years 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!


  2. agelonwl
    Posted 3 years 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
    Posted 3 years ago #

    thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic