Wordpress Sub Categories Problem?

by 4 replies
6
I've got wordpress categories and sub categoires.

Main 1
Sub
Sub
Sub

Main 2
Sub
Sub
Sub

So it should display on my blogs sidebar like above.

It's not doing this for me, it's displaying like this instead.

Sub of 2
Sub of 2
Sub of 2
Main 1
Sub of 1
Sub of 1
Sub of 1
Main 2.

I've tried everything to try get the main 2 to display above the sub's of 2 but nothing is working.

Has anyone had this problem before and knows a fix for it?

Thanks.

Mark
#programming #categories #problem #wordpress
  • Hi, Mark. I've seen this happen when the theme's sidebar is coded incorrectly.

    Try this. Go to Appearance / Widgets. If your theme is widget-enabled, you'll see at least one available sidebar in the dropdown list. Place a Categories widget in the sidebar. This will override your theme's default layout for the sidebar, but it will let you see whether or not the fault is with your theme, because the Categories widget will definitely display those menus correctly.

    If you try this and discover that the menu looks right with the widget there, then you have two choices: try to reconstruct the rest of the sidebar contents by adding more widgets, or try to fix the theme's sidebar.

    If you try this and discover that your theme isn't widget-enabled, then you have only the second option.

    HTH.

    Steve
    • [ 1 ] Thanks
    • [1] reply
    • Hmmm, the categories widget is enabled..

      I'm gonna take a look at the code and see is there anything strange about it.

      Done it.

      Hmmm, when I put it back to the theme structure it works fine, must be the wordpress interior widget that's not right.



      • [1] reply

Next Topics on Trending Feed