WordPress.org

Plugin Directory

wiki:CategoryOrder

Category Order

This plugin allows the blog administrator to set an explicit ordering, spacing, and indentation of categories in the category list that appears in the sidebar. The administrator specifies the ordering in the new "Category Order" management page. There is also an option for placing the category post count inside the link.

The plugin overrides any ordering or indentation of categories created by the list_cats() WordPress function. It works by dissecting the normal <ul> or <br/> formatted list that Wordpress creates, then reconstructing a custom <ul> or <br/> formatted list based on the new custom ordering and indentation. Note that it overrides any parent-child relationship between categories. Since the plugin modifies the display only, you can revert to the default ordering by simply disabling the plugin.

This plugin has only been tested for WordPress 2.0. It should and may work for earlier versions. (Please test and update this page!)

Here is a screenshot of the management page:

http://www.coppit.org/blog/uploads/categoryordermanagement.jpg

Installation

  1. Download the latest distribution from http://www.coppit.org/code/
  2. Unpack the archive into your wp-content/plugins directory using a command like zcat category-access-0.4.0.tar.gz | tar xfz -.
  3. Activate the plugin on the plugin screen
  4. Go to 'Category Order' under the 'Manage' menu to change the ordering and indenting.

Reporting Problems

The plugin is sensitive to the HTML generated by WordPress. If the plugin fails for you, it is likely that your category list HTML is somewhat different than what the plugin expects. In this case, please do the following:

  1. Disable the plugin
  2. Reload your blog in your web browser
  3. View the source of your blog
  4. Email the HTML snippet for the category list to the me
Last modified 12 years ago Last modified on 01/16/06 15:31:37