Advertisement
BakerMan

Show time/date for all events

Sep 10th, 2012
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement