Forums

Events Manager
Template Tag for the date(s) (5 posts)

  1. lolroflcopter
    Member
    Posted 3 months ago #

    I'm using a custom template (single-event.php) and would like to display the start and end time. What is the template tag for this?

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

  2. agelonwl
    Member
    Posted 3 months ago #

    you can try to use global $EM_Event then $EM_Event->start or $EM_Event->end

  3. Marcus
    Member
    Posted 3 months ago #

    those are timestamps by the way, the MYSQL dates are

    $EM_Event->event_end_date
    $EM_Event->event_start_date

  4. lolroflcopter
    Member
    Posted 3 months ago #

    Okay, cool...thanks!

    What about in a get_posts() foreach () kind of situation.

    For example:

    <?php $events = get_posts(array("post_type"=>"event-recurring")) ;
    foreach ($events as $event): setup_postdata($event); ?>
    <?php echo start_date; ?> //echo that event's start date
    <?php endforeach; ?>

    Is this possible?

  5. Marcus
    Member
    Posted 3 months ago #

    you probably want event, not event-recurring

Reply

You must log in to post.

About this Plugin

About this Topic