Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="todays-programs">
- <?php
- $now = date('Y-m-d');
- $upcoming_events = tribe_get_events(array(
- 'posts_per_page' => 5,
- 'eventDisplay' => 'upcoming'
- )
- );
- foreach($upcoming_events as $post) {
- if (tribe_get_start_date( null, false, 'Y-m-d' )!==$now) {
- break;
- }
- ?>
- <p><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></p>
- <?php } // end foreach ?>
- </div>
- <?php wp_reset_query(); ?>
Advertisement
Add Comment
Please, Sign In to add comment