• 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’); ?>

    I know

    <?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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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’); ?>

    Because that’s not enough. That line alone doesn’t do anything. You need The_Loop after that and need template tags, like the_title, without the_content.

    dreamsinplay

    (@dreamsinplay)

    Does this script allow you to have your archieve just show the post titles in a specific category?

    Thanks!!!

    – Andrew

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘List Post Titles for specific Categories’ is closed to new replies.