Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h4 class="event-day">Today's Hours<br> <?php echo tribe_get_start_date( null, false ); ?></h4>
- <?php
- global $post;
- $current_date = date('j M Y');
- $end_date = date('j M Y');
- $get_posts = tribe_get_events(array('start_date'=>$current_date,'end_date'=>$end_date) );
- foreach($get_posts as $post) {
- setup_postdata($post);
- if (tribe_get_start_date(null, false, 'Ymd') < date('Ymd')) continue; ?>
- <b><?php the_title(); ?>:</b>
- <?php if (tribe_get_start_date() !== tribe_get_end_date() ) { ?>
- <meta itemprop="startDate" content="<?php echo tribe_get_start_date( null, false, 'g:i a' ); ?>"/><?php echo tribe_get_start_date(null, false, 'g:i a'); ?>
- <?php _e('-', 'tribe-events-calendar'); ?>
- <meta itemprop="endDate" content="<?php echo tribe_get_end_date( null, false, 'g:i a'); ?>"/> <?php echo tribe_get_end_date(null, false, 'g:i a'); ?>
- <?php } else { ?>
- <?php _e('CLOSED', 'tribe-events-calendar'); ?>
- <?php } ?></br>
- <?php } //endforeach ?>
- <?php wp_reset_query(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement