List Post Titles for specific Categories
On my blog, i have the titles of my posts listed on the homepage by using the following code:
<?php get_archives(‘postbypost’, 10); ?>
But we’d like to split up the displaying of post titles by categories. Maybe just list the most recent 3 or 5 posts by that category.
I tried using the following on the home.php template and it doesn’t work:
<?php query_posts(‘cat=1’); ?>
<?php query_posts(‘cat=3’); ?>
<?php wp_list_categories(‘sort_column=name&title_li=’); ?>
<?php wp_list_cats(‘sort_column=name’); ?>
only list the Category Titles.
But I need the Post Titles to display for a Specific Category. Still searching for an answer.
What steps am I missing?
- The topic ‘List Post Titles for specific Categories’ is closed to new replies.