Advertisement
Guest User

list.php

a guest
Nov 18th, 2011
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.99 KB | None | 0 0
  1. <? global $mappress;
  2. $atts = array(
  3. 'width'=>535,
  4. 'height'=>343,
  5. 'marker_title' => "post",
  6. 'marker_body' => "excerpt"
  7. );
  8.  
  9. echo $mappress->shortcode_mashup($atts); ?>
  10. <ul class="events">
  11.     <?php
  12.     $args = array(
  13.     'post_type' => 'tribe_events', 'posts_per_page' => -1, 'order' => 'DESC'
  14.     );
  15.     query_posts( $args );
  16.     while ( have_posts() ) : the_post(); ?>
  17.         <li class="event-item">
  18.             <span class="event-dates"><?php echo date('m-d-Y', strtotime(tribe_get_start_date())); ?> - <?php echo date('m-d-Y', strtotime(tribe_get_end_date())); ?> </span>
  19.             <span class="event-title"><a href="<?php echo get_permalink(); ?>"><?php the_title(); ?></a></span>
  20.             <span class="event-location"><?php echo tribe_get_city(); ?>, <?php echo tribe_get_country(); ?></span>
  21.             <span class="event-info"><a href="<?php echo get_permalink(); ?>">INFO</a></span>
  22.         </li>
  23.         <?php
  24.         if(is_single() && ‘tribe_events’ == get_post_type()) {
  25.  echo 'test';
  26. }
  27.         ?>
  28.     <?php endwhile; wp_reset_query(); ?>
  29. </ul>
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement