Forums

How to display post titles under their categories (4 posts)

  1. ijyoung23
    Member
    Posted 3 years ago #

    I have looked at the category customising codex and stil cannot see how to get what I want.

    I must have done simething really stupid as my posts look like:

    category 1
    category 2
    post 1
    post 2
    post 3

    Whereas they should look like
    Category 1
    Post 1
    Post 2

    category 2
    Post 3

    Code I am using is
    '<?php wp_list_categories('title_li'); ?>
    <?php get_archives('postbypost','15','custom','<li class="post">',''); ?>'

    Any thoughts folks.

    Cheers

    Ian

  2. ijyoung23
    Member
    Posted 3 years ago #

    Of course, I should have mentioned that this is in the sidebar!

  3. babypress
    Member
    Posted 3 years ago #

    How did you go, did you work it out?

  4. ijyoung23
    Member
    Posted 3 years ago #

    Sorry guys

    Forgot to post that I found a fix. After trying several plugins most of which were not that good, I found that this one - dead simple - works a treat - http://www.frucomerci.com/list-posts-by-category-plugin-for-wordpress/

    cheers

    Ian

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags