Created
March 27, 2012 00:54
-
-
Save jo-snips/2211213 to your computer and use it in GitHub Desktop.
The Events Calendar: Custom Venue Query
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
<ul> | |
<?php | |
global $post; | |
$args = array( | |
'post_status'=>'publish', | |
'post_type'=>'tribe_venue', | |
'posts_per_page'=>-1 | |
); | |
$get_posts = null; | |
$get_posts = new WP_Query(); | |
$get_posts->query($args); | |
if($get_posts->have_posts()) : while($get_posts->have_posts()) : $get_posts->the_post(); | |
?> | |
<li> | |
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"> | |
<?php the_title(); ?> | |
</a> | |
</li> | |
<?php | |
endwhile; | |
endif; | |
wp_reset_query(); | |
?> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment