Guest User

Untitled

a guest
Apr 8th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. <?php
  2. $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
  3. $query_args = array(
  4. 'post_type' => 'tribe_events',
  5. 'tribe_events_cat' => 'Featured Header',
  6. 'posts_per_page' => 1,
  7. 'order' => 'ASC',
  8. 'paged' => $paged
  9. );
  10. $the_query = new WP_Query( $query_args );
  11. ?>
  12.  
  13. <?php if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
  14.  
  15. <?php
  16. global $post;
  17. $day = tribe_events_get_current_month_day();
  18. $event_id = "{$post->ID}-{$day['daynum']}";
  19. $link = tribe_get_event_link( $post );
  20. $title = get_the_title( $post ); ?>
  21.  
  22. <!-- Events content displays here. -->
  23.  
  24. <?php endwhile; ?>
  25.  
  26. <?php else: ?>
  27.  
  28. <?php endif; ?>
Add Comment
Please, Sign In to add comment