I’m having this exact same problem with my blog. The Sub-categories worked fine in the previous version of WP but now that I’ve upgraded to 2.7 it works in the admin section but doesn’t work on the actual blog. Anybody with an answer who could help would be appreciated?
If you category listing comes from widgets, adjust the settings to display hierarchically
what about just on category menu?
I actually tried category listing comes from widgets and it worked when I choose to display hierarchically. But then there would be two category listings on my side bar.
How can I possible to change hierarchically on just category menu, not in widgets?
on this page,
http://codex.wordpress.org/Function_Reference/get_categories
read about the hierarchical setting
the file that needs changing is
/wp-content/themes/{themename}/sidebar.php
thanks stvwlf but still don’t work.
here’s my sidebar.php.
can anyone find what is the problem with my sidebar?
or how can I remove category menu from side bar?
I tried to delete on sidebar.php but there was still category menu on my blog.
<div id=”sidebar”>
- A little bit about yourself
–>
<!– The calendar is also hidden.
- <h2><?php _e(‘Calendar’); ?></h2>
–>
<?php if ( function_exists(‘dynamic_sidebar’) && dynamic_sidebar() ) : else : ?>
- <h2><?php _e(‘Search’); ?></h2>
<li id=”search”><?php include (TEMPLATEPATH . ‘/searchform.php’); ?>
<?php wp_list_pages(‘depth=3&title_li=<h2>’ . __(‘Pages’) . ‘</h2>’ ); ?>
- <h2><?php _e(‘Categories’); ?></h2>
<?php wp_list_cats(‘sort_column=name&optioncount=1&hierarchical=0’); ?>
- <h2><?php _e(‘Archives’); ?></h2>
<?php wp_get_archives(‘type=monthly’); ?>
<?php get_links_list(); ?>
- <h2><?php _e(‘Meta’); ?></h2>
<?php endif; ?>
</div>
So I finally figured out this problem and how to resolve it.
Go to Admin > Appearance > Widgets
If you have the Categories Widget Active it should be located on the right side of the screen under Current Widgets.
Click on Edit. Here you will be able to change the Title of the section plus there are three checkboxes: show as dropdowns, show post counts, show hierarchy.
Make sure you check “show hierarchy” and then create a post that’s in the category child that you created.
Go back to the site and refresh the page. You category hierarchy’s should now work.
Kind of dumb how simple it was and yet we couldn’t figure it out, huh!! Hope this helps you if you haven’t already figured it out.