This Widget uses WordPress Categories which have Parent to Child relationships to create a collapsible list of Categories for your weblog. Let me stress: you must have Categories that have child Categories for this to work, as the child Categories will be the ones that get rolled up in the collapsed list. If you are unfamiliar with what this means or why you would want to use it, see WordPress documentation for reference.
- The ability to display a compact list of top-level Categories and allow users to expand the list if they so desire.
- Two separate sorting options for the Top-Level and Child Categories, along with the option to sort in Ascending or Descending order. All child Categories below the first child (second, third generation) will be bound to the first child’s setting.
- For the sake of keeping your site’s look and feel, I’ve provided an option which will allow you to set the CSS class name of both the Top-Level and Child Categories.
- You also have the option of setting the displayed name of the Categories as either the Category Name or as the Description, if you’re used to that option in WP.
- The same options are available for setting the link’s TITLE attribute.
- The option to show the post count in each Category is also available.
- Support for an unlimited hierarchical depth. If you’ve got great-great-great-grandchildren, this Widget will handle them. Whether your sidebar will have room is another story. . .
- Download the file found Collapsing Categories, and extract to a local folder.
- Upload collapsing_categories.php file and the folder to wp-content/plugins/ folder on your webserver. Both the file and the folder should appear in the root of the /plugins folder.
- Activate from the plugins page in WordPress Admin panel.
- Go to your “Presentation” page and click on “Sidebar Widgets,” place and configure your Collapsing Categories Widget.