Created
February 27, 2013 11:13
-
-
Save caddoo/5047191 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
<div class="entry"> | |
<h3>► Upcoming events</h3> | |
<?php | |
$upcoming = new WP_Query(array( | |
'post_type' => 'event', | |
'posts_per_page' => -1 | |
)); | |
while( $upcoming->have_posts() ): | |
$upcoming->the_post(); | |
?> | |
<strong><?php the_title(); ?></strong> <br/> Date: <em><?php echo td_meta_date_nice($post->ID, '_slt_event_date'); ?> - <?php echo td_meta_date_nice($post->ID, '_slt_event_date_end'); ?></em><br/> <a href="<?php echo get_permalink(); ?>">More details →</a><br/>∼ | |
<?php | |
endwhile; | |
wp_reset_postdata(); | |
?> | |
</div><!--end entry--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment