Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h3 class="sbh3">Events</h3>
- <?php
- $args=array(
- 'post_type' => 'events',
- 'post_status' => 'publish',
- 'posts_per_page' => 3,
- 'caller_get_posts'=> 1
- );
- $my_query = null;
- $my_query = new WP_Query($args);
- if( $my_query->have_posts() ) {
- while ($my_query->have_posts()) : $my_query->the_post(); ?>
- <span class="sidebarlink"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></span><br />
- <?php echo events_meta($when); ?><br />
- <?php the_excerpt(); ?><br />
- <?php
- endwhile;
- }
- wp_reset_query(); // Restore global post data stomped by the_post().
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement