I'm working on a Wordpress website that shows events on the homepage. I've installed the plugin The Events Calendar. This one seems to work perfectly. However, It seems impossible to retrieve some specific data from the event.
<?php
$events = tribe_get_events(array(
'posts_per_page' => 3,
'start_date' => date('Y-m-d H:i:s')
));
if (empty($events)) {
_e('There are no events plannend', 'uma-theme');
} else
foreach ($events as $event) {
?>
<h3 class="calendar-list__item__title">
<?php
echo get_the_title($event);
?>
</h3>
<span class="calendar-list__item__date">
<span class="day">
<?php
echo tribe_get_start_date($event, false, 'j');
?>
</span>
<span class="month">
<?php
echo tribe_get_start_date($event, false, 'M');
?>.
</span>
</span>
<div class="">
//echo tribe_get_event_meta( tribe_get_venue_id( $event->ID ), '_VenueURL', true );
//echo get_the_title( $organizer );
</div>
<?php
}
?>
I've already checked there documentation, but none of these things work. I've commented the non-working stuff above.