Plugin Directory

Folding Category List (FoCaL)

Author: Tim Trott

As your blog gets more and more posts, inevitably you will create more categories to cope. Eventually your categories will take up more room on your screen, and scroll across many pages.

This plug-in provides a Folding Category List (FoCaL) for Wordpress version 2.3 and above which allows categories to be expanded and collapsed to save room on your sidebar. Please see http://sharpertutorials.com http://www.yourparanormal.com http://www.galacticfool.com or the plugin homepage for demos.

On the plugin homepage you can also find full documentation as well as a list of more demo sites.

One of the main features of this Wordpress plugin is that a prioritised list should dictate which category is expanded. When viewing single posts which are assigned to multiple categories the default behaviour of Wordpress is the category with the lowest numerical id is selected.

This plugin also allows expansion and highlighting of the list when viewing a page. Simply create a custom field for the page called "category" and give it a value equal to the numerical ID of the category to expand.

The plugin is fully configurable from within the Wordpress settings screen (Settings -> FoCaL). Please see the plugin homepage for detailed instructions.

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 administration screens
  • Add static links to the list
  • Control category order by name, id, description, post count or use with "My Category Order" plugin for total control
  • Wordpress 2.3+ support

What's New in 1.0.2?

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

IMPORTANT!: Version 1.0.0+ is a complete new version and is NOT compatible with previous versions. I'm sorry, but the settings and CSS from the old version cannot be transferred to the new automatically. If upgrading from a previous version (<= 0.7.2) Please see the (http://lonewolf-online.net/computers/wordpress/folding-category-widget/2/) page for details on the changes. In short: The css and settings have changed - existing CSS selectors will not work with this version and your old settings will need to be re-applied to this new version. Also the plugin is installed to a different folder so you may wish to delete the old one first.

  • 1.0.2 Adds qTranslate support
  • 1.0.2 Fixes bug on certain servers complaining about unexpected end of script
  • All new code restructured for simplicity and efficiency
  • Numerous performance enhancements
  • Numerous bug fixes (too many to list)
  • Compatibility with My Category Order
  • Multiple widgets on sidebar
  • Fully documented configuration screens with improved interface
  • Built-in sample css "themes"
  • Restructured CSS to allow greater flexibility in design
  • Add to non-widget pages, sidebars, headers, footers etc... (see http://lonewolf-online.net/computers/wordpress/folding-category-widget/2/ for details)

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