Skip to content

Instantly share code, notes, and snippets.

@jo-snips
Created October 10, 2012 12:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jo-snips/3865393 to your computer and use it in GitHub Desktop.
Save jo-snips/3865393 to your computer and use it in GitHub Desktop.
The Events Calendar: Get Organizers
<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