WordPress.org

Ready to get started?Download WordPress

Forums

Hide parents list children (1 post)

  1. randinicole
    Member
    Posted 1 year ago #

    Hi, I have 3 parent categories and 2 of those have dozens of children, I managed to hide the parents and list only the children but I do not like the way it displays.

    Example :

    apples
    grapes
    kiwis

    carrots
    cucumbers
    potatoes
    tomatoes

    I would like to mix the list to where it shows like this

    apples
    carrots
    cucumbers
    grapes
    kiwis
    potatoes
    tomatoes

    I tried to double up on the child_of=4,2 but it wouldn't work. I have searched and wonder if I am just missing something.

    my code looks something similar to this `

    wp_list_categories('show_count=0&child_of=4&depth=1');
    `

    Thanks for all the help :)

    No bumping please

Topic Closed

This topic has been closed to new replies.

About this Topic