Wordpress Sub Categories Problem?

4 replies
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
#categories #problem #wordpress
  • Profile picture of the author Steve Diamond
    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
    Signature
    Mindfulness training & coaching online
    Reduce stress | Stay focused | Keep positive and balanced
    {{ DiscussionBoard.errors[1151188].message }}
    • Profile picture of the author Intrepreneur
      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.



      Originally Posted by Steve Diamond View Post

      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
      {{ DiscussionBoard.errors[1151215].message }}
      • Profile picture of the author Steve Diamond
        Mark, you're saying that the theme's default sidebar layout gets the category menu right, but the Categories widget gets it wrong? That's a new one on me.

        Is that the standard WP Categories widget? Do you have the latest version of WP? If it is the latest one that comes with WP, I guess if I were you I'd head over to the WP forums and see it anyone has posted there with a similar problem.

        Steve
        Signature
        Mindfulness training & coaching online
        Reduce stress | Stay focused | Keep positive and balanced
        {{ DiscussionBoard.errors[1151301].message }}
        • Profile picture of the author Intrepreneur
          Originally Posted by Steve Diamond View Post

          Mark, you're saying that the theme's default sidebar layout gets the category menu right, but the Categories widget gets it wrong? That's a new one on me.

          Is that the standard WP Categories widget? Do you have the latest version of WP? If it is the latest one that comes with WP, I guess if I were you I'd head over to the WP forums and see it anyone has posted there with a similar problem.

          Steve
          I've been at the forums, they didn't seem to have the answer I was looking for either so headed in here.

          The themes inbuilt category works like a charm but when overiding with wordpress (latest version) category widget, it's all wrong. Wierd :confused:
          {{ DiscussionBoard.errors[1152429].message }}

Trending Topics