Custom side bar which lists posts by title names (2 posts)

  1. Agent D
    Posted 6 years ago #


    I'm working on a custom side menu for my Shop section. Under the category Shop (id=24) I have three child categories. What I would like to do is to list the posts' titles(linked) under the child category names (non-linked). So it would be like this:

    Shop (cat-24/on-linked)

    Fruits: (Child cat/non-linked)
    - Apple (Post title/linked)
    - Orange (Post title/linked)

    Vegetables: (Child cat/non-linked)
    - Lettuce (Post title/linked)
    - Onion (Post title/linked)
    - Tomato (Post title/linked)

    I'm currently using the code below but this only posts the subcategory names which are linked and don't display the posts' titles. I'm really stuck and don't know where to go from here...

    <?php wp_list_categories('use_desc_for_title=1&child_of=24&title_li=<h2>Shop</h2>'); ?>

    If anyone has any suggestions I would really appreciate it. Thank you.


  2. Agent D
    Posted 6 years ago #

    bump, anyone?

Topic Closed

This topic has been closed to new replies.

About this Topic