Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $counter = 3;
- $recentPosts = new WP_Query();
- $recentPosts->query('showposts=3');
- ?>
- <?php while ($recentPosts->have_posts()) : $recentPosts->the_post(); ?>
- <div class="box<?php echo $counter--; ?>">
- <?php the_excerpt(); ?>
- </div>
- <?php endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement