• I’d like to list the category children of category #11 but it only shows one of the three children.
    <?php wp_list_categories(‘orderby=title&order=asc&use_desc_for_title=0&child_of=11&hide_empty=0&title_li=’); ?>
    I’m having the same problem with all of my categories.
    any suggestions?
    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • You code looks okay. If you just use wp_list_categories() do you see all the categories and the children?

    A link to see the problem, please, if you continue this thread.

    Thread Starter rpophessagr

    (@rpophessagr)

    thanks for your help! the menubar at the top of https://www.howtoreachmygoals.com
    “balance” “build” “Professional” & “relationships” all are supposed to have 3 or 4 subcategories each.
    thanks for your help!

    It looks to me like those aren’t categories but rather pages.

    Balance looks to be a Page and Discover Balance looks like it might be a category.

    If that is the case, you might look at the template tag, wp_list_pages().

    Thread Starter rpophessagr

    (@rpophessagr)

    I created them under the categories section.
    under “menu” those are pages.
    Balance, build, professional and relationships are all categories. But, for some reason the subcategories are not registering…

    Thread Starter rpophessagr

    (@rpophessagr)

    thanks for your input. I guess i’ll just use permalinks

    They’re probably missing because categories won’t show up unless they have posts associated with them.

    [Edit: Whoops, I just noticed that you had hide_empty=0. Now I have no idea.]

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Missing Children in wp_list_categories’ is closed to new replies.