Created
October 10, 2012 12:46
-
-
Save jo-snips/3865393 to your computer and use it in GitHub Desktop.
The Events Calendar: Get Organizers
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 | |
$args = array( | |
'post_status'=>'publish', | |
'post_type'=>'tribe_organizer', | |
'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> | |
<?php the_title(); ?> | |
<?php echo tribe_get_organizer_email(); ?> | |
<?php echo tribe_get_organizer_phone(); ?> | |
</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