Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Is a single day being viewed here?
- if (tribe_is_day()) {
- // Does the event span multiple days?
- if (tribe_is_multiday()) {
- // When does the event start and what day is today?
- $startDate = tribe_get_start_date(null, false, 'Ymd');
- $today = tribe_event_format_date(strtotime(get_query_var('eventDate')), false, 'Ymd');
- // If it started *before* today, let's give it a miss
- if ($startDate < $today) continue;
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement