I am looking for a way to display an event’s end date only if the event spans over more than one month. Here is the code I’m working with:
<!-- Schedule & Recurrence Details -->
<div class="tribe-event-schedule-details">
<div class="month">
<span><?php echo tribe_get_start_date( null, false, 'M' ); ?> </span>
</div>
<div class="dates">
<span class="start-date">
<?php echo tribe_get_start_date( null, false, 'j' ); ?>
</span>
<span class="end-date">
<?php if ( tribe_event_is_multiday( $event ) ) : ?>
<span class="sep">-</span>
<?php echo tribe_get_end_date( null, false, 'j' ); ?>
<?php endif; ?>
</span>
</div>
</div>
This has been working pretty well for me and yield results that look like this. The problem I’m running into is with events that run over multiple months, where it ends up looking like this (and event that runs from September to October).
I would like to be able to display the name of the end date’s month only in these instances. Is this possible?