SHOW:
|
|
- or go back to the newest paste.
| 1 | <?php | |
| 2 | /* This is what we are looking for. Note that tribe_get_start_date | |
| 3 | * is already set up to display the time as well as the date. */ | |
| 4 | ?> | |
| 5 | <?php if ( tribe_is_new_event_day() && !tribe_is_day() ) : ?> | |
| 6 | <h4 class="event-day"><?php echo tribe_get_start_date( null, true ); ?></h4> | |
| 7 | <?php endif; ?> | |
| 8 | ||
| 9 | ||
| 10 | <?php | |
| 11 | /* Let's strip out the if block and just leave the template tag, | |
| 12 | * doing this means we get the time and date for every event, not | |
| 13 | * just the first event on each date. */ | |
| 14 | ?> | |
| 15 | <h4 class="event-day"><?php echo tribe_get_start_date( null, true ); ?></h4> |