Forums

category listing not formatted properly? (2 posts)

  1. elsuhla
    Member
    Posted 7 months ago #

    Hi all,

    I have a problem with wp_list_categories. The strucute of the category and its children I want to display is like this:

    Category
    -Subcategory I
    --Subcategory Ia
    -Subcategory II
    --Subcategory IIa

    But the output generated is like this:

    Category
    -Subcategory I
    --Subcategory Ia
    --Subcategory II
    ---Subcategory IIa

    I think the problem is that a html tag <ul class="children"> is opened for Subcategory I but it never gets closed, which messes up the formatting.

    Any ideas how to solve that? Thx!

  2. esmi
    Member
    Posted 7 months ago #

    If you're using wp_list_categories, I think it's more likely that you have a markup nesting error just before the category list output.

Reply

You must log in to post.

About this Topic