Heres a little snippet that will display recent posts from a specific category in WordPress.

<?php
   $catquery = new WP_Query( 'cat=3&posts_per_page=10' );
   while($catquery->have_posts()) : $catquery->the_post();
?>
   <?php the_title(); ?>
   <?php the_content(); ?>
<?php endwhile; ?>

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Recent Articles

left
Right