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?
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?
you can try to use global $EM_Event then $EM_Event->start or $EM_Event->end
those are timestamps by the way, the MYSQL dates are
$EM_Event->event_end_date
$EM_Event->event_start_date
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?
you probably want event, not event-recurring
You must log in to post.