The Wicked Coder

PHP, fun and all

How to Display Recent Posts From A Specific Category In WordPress

For advance users who want to display recent posts from a specific category, we have this article specially for you. Beginner users will most likely not use this. This tutorial is mostly used in creating magazine style themes.

have_posts()) : $catquery->the_post();

At the top where it says showpost= change the number to how many posts you want to display, and cat=3 is the id of the category, so change the ID of the category to pick which category will you be displaying.

Updated: August 18, 2013 — 10:01 am
The Wicked Coder © 2014