Created
June 28, 2013 14:13
-
-
Save adrianrodriguez/5884977 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
<?php | |
global $post; | |
$current_date = date('j M Y'); | |
$end_date = $current_date; | |
$get_posts = tribe_get_events(array( | |
'start_date'=>$current_date, | |
'end_date'=>$end_date, | |
'posts_per_page'=>3, | |
//'oderby'=>'multiday' | |
)); | |
foreach($get_posts as $post) {setup_postdata($post); | |
?> | |
<li> | |
<p class="date"> | |
<a href="<?php the_permalink(); ?>"><span class="month"> <?php echo tribe_get_start_date($post->ID, false, 'M'); ?></span></a> | |
<a href="<?php the_permalink(); ?>"><span class="day"> <?php echo date('d'); ?></span></a> | |
</p> | |
<p class="info"> | |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?><i class="icon-chevron-right"></i></a> <br><?php echo substr(get_the_excerpt(), 0, 50); ?>...</p> | |
<div class="clear"></div> | |
</li> | |
<?php } //endforeach ?> | |
<?php wp_reset_query(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment