<ul class="media-list">
<?php global $post;
$events = tribe_get_events( array('posts_per_page' => 5,'start_date' => current_time( 'Y-m-d' ),) );
foreach ( $events as $post ) {?>
<?php setup_postdata( $post );?>
<li>
<?php the_title();?>
</li>
<?php } ?>
</ul>
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.