Plugin Directory

Folding Category List

Author: Tim Trott

This plug-in provides a Folding Category widget for Wordpress version 2.3 and above. Please see http://www.yourparanormal.co.uk or http://www.csharp-tutorials.com for demos.

On the plugin homepage you can find a list of other demo sites as well as screenshots and CSS code of how the list can be styled.

A feature that was requested for one site was that a prioritised list should dictate which category is expanded when viewing single posts. This replaces the behaviour of Wordpress where the category with the first numerical id is expanded.

There is also a facility to assign a category to a page using custom fields. This feature allows the category navigation menu to expand a certain category when viewing a page. You need to create a Custom Field for the page called 'category' which should contain the numerical ID of the category to expand when that page is being viewed.

The plugin is fully configurable from within the Wordpress Widget admin panel.

This plugin has been tested and works on all Wordpress themes I have developed as well as Classic, Default and a few other popular themes. The plugin produces valid W3C XHTML and CSS.

Main Features

  • Very few SQL queries so it does not put strain on server (except when post count is enabled)
  • Option to cache navigation structure to further reduce server load
  • Very fast (typically < 0.025 seconds) to generate category tree, even with many categories
  • Priority based category selection where multiple categories are available (e.g. single post view)
  • Pages can expand category navigation
  • Full configuration via Widget Control Panel
  • Wordpress 2.3 support

What's New in 0.6.2?

For version history, and older versions please refer to the plugin homepage.

Bugs Fixed

  • Problems with unserialise when building cache (no really! Its fixed this time)

Current Issues

  • Recent Posts widget causes post variable to contain corrupt data, not an issue with the folding category list but it does rely on post being set properly. More information: http://wordpress.org/support/topic/173868
  • delete_post action does not fire properly, meaning that when a post is deleted the list needs to be manually updated.