I know there is the function tribe_events_list_the_date_headers in the standard events post loop to show the month in between the appropriate events, but when I’m doing a custom loop with get_tribe_events the month shows in between every event. Is there another way to show the months to separate the event titles in a simple event list such as seen in the left column of: http://northwestdharma.org/events/ ???
<?php
global $post;
$list_events = tribe_get_events(array(
'eventDisplay'=>'upcoming',
'posts_per_page'=>10
));
if (count($list_events) == 0) {
echo '<p>No Events at this time.</p>';
} else {
foreach($list_events as $post) {
setup_postdata($post);
?>
<p><strong><a href="<?php the_permalink(); ?>" class="title-link"><?php the_title(); ?></a></strong><br>
<?php
echo '<strong>Starts:</strong> ' . tribe_get_start_date($post, false, $format = 'D, M jS' ) . '<br>';
echo '<strong>Contact:</strong> ' . get_the_title( tribe_get_organizer_id() ) . '<br>';
echo '<strong>Region:</strong> ' . tribe_get_city( $event_id );
echo ', ';
echo tribe_get_region( $event_id );
echo '</p>';
}} //endforeach ?>
<?php wp_reset_query(); ?>