WordPress.org

Support

Support » How-To and Troubleshooting » Custom side bar which lists posts by title names

Custom side bar which lists posts by title names

  • Hi,

    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.

    AD

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Custom side bar which lists posts by title names’ is closed to new replies.