Support » Plugin: Event List » Get date and event location in single-el_events

  • How can i get the event location and date in the single-el_events.php? I have a custom single page to show events detail, but I don’t know how to get the event information. Plz, help me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I get it using get_post_meta()

    <?php $event_id = get_the_ID(); ?>
    <span class="startdate"><?php print get_post_meta($event_id, 'startdate', true); ?></span>
    <span class="startdate"><?php print get_post_meta($event_id, 'enddate', true); ?></span>
    <span class="startdate"><?php print get_post_meta($event_id, 'starttime', true); ?></span>
    <span class="startdate"><?php print get_post_meta($event_id, 'location', true); ?></span>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Get date and event location in single-el_events’ is closed to new replies.