Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* This is what we are looking for. Note that tribe_get_start_date
- * is already set up to display the time as well as the date. */
- ?>
- <?php if ( tribe_is_new_event_day() && !tribe_is_day() ) : ?>
- <h4 class="event-day"><?php echo tribe_get_start_date( null, true ); ?></h4>
- <?php endif; ?>
- <?php
- /* Let's strip out the if block and just leave the template tag,
- * doing this means we get the time and date for every event, not
- * just the first event on each date. */
- ?>
- <h4 class="event-day"><?php echo tribe_get_start_date( null, true ); ?></h4>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement