Skip to content

Instantly share code, notes, and snippets.

@jkudish
Created January 26, 2012 03:00
Show Gist options
  • Save jkudish/1680687 to your computer and use it in GitHub Desktop.
Save jkudish/1680687 to your computer and use it in GitHub Desktop.
<?php
global $post;
$get_posts = tribe_get_events(array('posts_per_page'=>10, 'venue'=>176) );
foreach($get_posts as $post) { setup_postdata($post); ?>
<div class="post">
<h4 class="post-header"><a href="<?php the_permalink(); ?>" id="post-<?php the_ID(); ?>"><?php the_title(); ?></a></h4>
<span class="event-date"><a href="<?php the_permalink(); ?>"><?php echo tribe_get_start_date($post->ID, true, 'M j, Y'); ?></a></span>
<div class="post-content"><?php the_content(); ?></div>
</div>
<?php } //endforeach ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment