Guest User

Test of Stefhan's code

a guest
Nov 6th, 2012
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1. $args = array(
  2.     'post_type' => 'tribe_events',
  3.     'showposts' => -1
  4. );
  5. $evs = new WP_Query($args);
  6.  
  7.  
  8. if ($evs->have_posts()) {
  9.     $hasPosts = true; $first = true;
  10.     while ($evs->have_posts()) {
  11.         $evs->the_post();
  12.         global $more; $more = false;
  13.         the_title('<br />', '<br />');
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment