Guest User

Minimal custom event loop

a guest
Feb 9th, 2013
607
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None | 0 0
  1. $all_events = tribe_get_events(
  2.     array(
  3.         'eventDisplay'=>'upcoming',
  4.         'posts_per_page'=>1,
  5.         'tax_query'=> array(
  6.             array(
  7.                 'taxonomy' => 'tribe_events_cat',
  8.                 'field' => 'slug',
  9.                 'terms' => 'microsoft-word-classes'
  10.             )
  11.         )
  12.     )
  13. );
  14.  
  15. foreach($all_events as $post) {
  16.     setup_postdata($post);
  17.     the_title();
  18.     echo tribe_get_start_date( $post->ID, false, 'D. M j, Y' );
  19. }
Advertisement
Add Comment
Please, Sign In to add comment