Last active
March 22, 2017 06:15
-
-
Save trishasalas/86cc9975ab65c428dedd6a802dbcf426 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global $post; | |
$events = tribe_get_events( | |
array( | |
'posts_per_page' => 1, | |
'tax_query' => array( | |
array( | |
'taxonomy' => 'tribe_events_cat', | |
'field' => 'slug', | |
'terms' => 'featured', | |
), | |
), | |
) ); | |
foreach ( $events as $post ) { | |
setup_postdata( $post ); | |
?> | |
<h2><a href="<?php echo get_permalink( $post ); ?>"><?php echo $post->post_title ;?></a></h2> | |
<p><?php echo tribe_get_start_date( $post ); ;?></p> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment