1
2
3
4
5
6
7
<?php $my_query = "showposts=3&cat=5"; $my_query = new WP_Query($my_query); ?>
<?php if ($my_query->have_posts()) : while ($my_query->have_posts()) : $my_query->the_post(); ?>

<!-- Insert the regular template tags you would use within the loop here-->

<?php endwhile; // end of one post ?>
<?php endif; //end of loop ?>