Call a list of posts from specific category
-
Hi there,
I’ve been trawling through the forum but can’t seem to find an answer for this. I’ve created a template which I want to use to call a list of posts from a specific category (In this case the category ID is 4).
Using the following code, I can output all the posts in their entirety however I just want to output the list you would normally see when clicking the category name on the front end.
Any help would be greatly appreciated!
Here’s the call I’m currently using:
<?php if (is_page()) { query_posts(‘cat=4’); } ?>
- The topic ‘Call a list of posts from specific category’ is closed to new replies.