=== Collapsing Categories === Contributors: robfelty Donate link: http://robfelty.com/plugins Plugin URI: http://robfelty.com/plugins Tags: categories, sidebar, widget, navigation Requires at least: 2.8 Tested up to: 4.6 Stable tag: 2.0.8 Adds a widget which uses Javascript to dynamically expand or collapse the set of posts for each category. == Description == Collapsing Categories creates an expandable list of categories and subcategories. It can also expand to show posts. The primary usage is as a widget, but you can also use the code in your theme manually if you wish (see installation instructions) = What's New?= * 2.0.8 (2016.08.23) * Fixed bug with displaying html entities in titles (props to harnwerd for reporting the bug) * 2.0.7 (2015.11.01) * Replaced deprecated API calls with newer ones * 2.0.6 (2015.08.12) * Compatible with WP 4.3 = Style changes = Version 2.0 introduces a simpler method for styling widgets, and each widget can be styled separately. Several options are included. If you don't like those options, you can also use your own css in your theme. == Installation == IMPORTANT! Please deactivate before upgrading, then re-activate the plugin. Unpackage contents to wp-content/plugins/ so that the files are in a collapsing-categories directory. = Widget installation = Activate the plugin, then simply go the Presentation > Widgets section and drag over the Collapsing Categories Widget. = Manual installation = Activate the plugin, then insert the following into your template: (probably in sidebar.php). See the Options section for more information on specifying options. ` \n"; if (function_exists('collapsCat')) { collapsCat(); } else { wp_get_categories('your_options_here'); } echo "\n"; ?> ` == Frequently Asked Questions == = How do I use different symbols for collapsing and expanding? = If you want to use images, you can upload your own images to http://yourblogaddress/wp-content/plugins/collapsing-categories/img/collapse.gif and expand.gif There is an option for this. = I have selected a category to expand by default, but it doesn't seem to work = If you select a sub-category to expand by default, but not the parent category, you will not see the sub-category expanded until you expand the parent category. You probably want to add both the parent and the sub-category into the expand by default list. = I can't get including or excluding to work = Make sure you specify category names, not ids. = There seems to be a newline between the collapsing/expanding symbol and the category name. How do I fix this? = If your theme has some css that says something like #sidebar li a {display:block} that is the problem. You probably want to add a float:left to the .sym class = No categories are showing up! What's wrong?" = Are you using categories or tags? By default, collapsing categories only lists categories. Please check the options in the settings page (or in the widget if you are using the widget) = How do I change the style of the collapsing categories lists? = As of version 2.0, there are several default styles that come with collapsing-categories. You can choose from these in the widget settings , or you can create your own custom style. A good strategy is to choose a default, then modify it slightly to your needs. The following classes are used: * collapsing - applied to all ul and li elements * categories - applied to all ul and li elements * list - applied to the top-level ul * item - applied to each li which has no sub-elements * expand - applied to a category which can be expanded (is currently collapsed) * collapse - applied to a category which can be collapsed (is currently expanded) * sym - class for the expanding / collapsing symbol An example: `