Guest User

list.php

a guest
Jan 12th, 2012
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.86 KB | None | 0 0
  1. <?php
  2. /**
  3. * The TEC template for a list of events. This includes the Past Events and Upcoming Events views
  4. * as well as those same views filtered to a specific category.
  5. *
  6. * You can customize this view by putting a replacement file of the same name (list.php) in the events/ directory of your theme.
  7. */
  8.  
  9. // Don't load directly
  10. if ( !defined('ABSPATH') ) { die('-1'); }
  11.  
  12. ?>
  13. <div id="tribe-events-content" class="upcoming">
  14.  
  15.     <div id="tribe-events-loop" class="tribe-events-events post-list clearfix">
  16.    
  17.     <?php if (have_posts()) : ?>
  18.     <?php $hasPosts = true; $first = true; ?>
  19.     <?php while ( have_posts() ) : the_post(); ?>
  20.         <?php global $more; $more = false; ?>
  21.         <?php echo 'ID:' . get_the_ID(); ?>
  22.         <?php echo 'POST ID:' . $post->ID; ?>
  23.     <?php endwhile;// posts ?>
  24.     <?php else :?>
  25.        
  26.        
  27.     <?php endif; ?>
  28.  
  29.  
  30.     </div><!-- #tribe-events-loop -->
  31. </div>
Advertisement
Add Comment
Please, Sign In to add comment