• I’ve chosen the ‘show hierarchy’ option in the Categories widget to display the child categories beneath their parent categories. But the code that displays the child categories does not close the <ul class=’children’> tag causing all following listed items to shift one level down in the hierarchy than they should be.

    You can see my test site here. Look at the Categories widget in the left sidebar and you can see that the two child categories (Bowlingshirt.com and C28.com) are properly shifted beneath the Clients parent category.

    But after that the News and Podcast parent categories, along with the rest of the widgets in the sidebar are shifted.

    I have examined the code on the page with view source and determined that the issue is indeed caused by the <ul class=’children’> not being closed with a after the list of child categories is complete.

    Where can I look to fix this and make the needed appear? The best I can find is in category-template.php in the functions get_category_children() and get_category_parents().

    But this is escaping me and I’d rather ask for advice before complicating things and modifying core files.

    Is anyone else seeing this occur?

    Thank you for looking at this with me.
    Joel

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter jgarcia

    (@jgarcia)

    I have viewed this issue in my own theme and the default and classic themes to confirm it is not just an issue within my theme.

    Is there a different location that this type of issue should be reported so that those who maintain the WP core can address it in an update? This is something that is affecting anyone that uses hierarchy display in their categories widget.

    I’d like to help get the information to the right people so that it can be taken care of appropriately.

    Thanks,
    Joel

    Reporting Bugs explains, but make sure to search Trac before reporting.

    Thread Starter jgarcia

    (@jgarcia)

    Thanks, MichaelH. Just got back from a conference, so I’ll follow up with this by searching Trac and submitting if it seems appropriate.

    I have that problem to!

    I saw the same thing in dmytron’s site….I used his code in a index.php file and it worked fine…perhaps it’s a widget or plugin issue.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Show hierarchy in Categories widget problem’ is closed to new replies.