• Hello,

    I would like to integrate a list of posts by category in my template.
    That means I’m having a vertical lists of all categories and subcategories and the posts within. When I click on the post I’m coming to the actual post.

    Any idea how to do this?

    Thanks in advance, Karina

Viewing 3 replies - 1 through 3 (of 3 total)
  • I think this is probably what you are looking for

    https://codex.www.ads-software.com/Creating_an_Archive_Index

    Thread Starter cgoldt

    (@cgoldt)

    The Problem with <?php wp_get_archives(); ?> is, that it just can generate a date based list. I would more need something like this:

    Title of Subcategory
    .. the post title
    Title of Subcategory
    – Title of Sub-Subcategory
    .. the post title
    – Title of Sub-Subcategory
    – – Title of Sub-Sub-Subcategory
    .. first post title
    .. second post title
    .. third post title
    ===============================
    with examples:
    Fruits
    .. the post title in cat Fruits
    Vegetables
    – Cucumber
    .. the post title in cat Cucumber
    – Potatoes
    – – Sweet potatoes
    .. first post title in cat sweet potatoes
    .. second post title in cat sweet potatoes
    .. third post title in cat sweet potatoes

    This would be a vertical list on my category page, that shows all subcategories with the posts within. I hope that’s not too confusing.
    Thanks, Ka

    Thread Starter cgoldt

    (@cgoldt)

    nobody?? please help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘List of posts by category’ is closed to new replies.