WordPress Guy

WordPress Guy designs and develops WordPress themes and plugins. WordPress Guy teaches you WordPress stuff.

Last week I was having a really hard time ordering the categories in this blog’s header as WordPress only seems to allow to order by name or by ID. That’s why I came up with the Category Order plugin.

Description

The Category Order plugin allows you to easily reorder your categories the way you want via drag and drop. It doesn’t require a special widget or anything, just install and reorder.

Requirements

This plugin requires that you use at least WordPress 2.3, although it has only been tested on WordPress 2.5.1

Download

Category Order 1.0.3

Installation

  1. Download the plugin and expand it.
  2. Copy the ‘category-order.php’ file into your plugins folder (wp-content/plugins/).
  3. Login into the WordPress administration area and go to the Plugins page.
  4. Locate the Category Order plugin and click on the activate link
  5. That’s it, now you can go to Manage » Category Order and reorder the categories the way you want.
  6. If you use wp_list_categories(), make sure you don’t specify an order (e.g. wp_list_categories(’orderby=count’);).

Version History

  • 1.0.3 - If no order is specified, categories are ordered by name
  • 1.0.2 - Fixed a problem related to PHP 4
  • 1.0.1 - Fixed a problem where the plugin wouldn’t work properly if you had installed WordPress in a subdirectory
  • 1.0 - Initial Release

Donate

Support further plugin development by making a small donation:

donate

Blog reactions

Comments

  • December 22nd, 2009 at 4:17 pm

    Works just dandy in WordPress 2.8.5.!!!!

    Great, great job…Thank you so much!

  • January 1st, 2010 at 1:28 pm

    me too. Fantastic!

    …although I had to install from the WP plugin page to get it working. Uploading to my webspace didn’t seem to work.

    Still, working now… if only everything worked so well!

  • January 7th, 2010 at 2:06 pm

    Thanks! Works great on 2.9.1 ;)

  • ... Category Order ...

  • January 19th, 2010 at 6:43 am

    Really helpful - Thanks a lot

  • January 19th, 2010 at 12:30 pm

    Hey man great plugin, real easy to install and use.
    I´m a novice php guy so I´m not getting it to play ball on my live site.

    I´m using this
    to display the categories I want to reorder on this page: http://www.sparnadur.is/sparnadur-ehf/starfsfolk/

    You mention in your guidelines to use wp_list_categories(’orderby=count’);).
    …could you give me some pointer to use this method with the code I´m using right now?

    Would be most appreciated mate ;)

  • kill
    January 26th, 2010 at 12:46 am

    Hy
    it’s really a very good plugin !

    But I need to make it display on my home page like he is in the pannel controlin how can i do ?? all my thanks :)

  • Patrick
    February 14th, 2010 at 10:32 am

    Tahnk you very useful post!

  • February 15th, 2010 at 6:54 am

    The plugin reorders the categories on my admin page but not on my front page. I use the theme “Amazing Grace” and the header php has the following:

    Do I need to change this and, if so, how?
    Thanks.

  • February 15th, 2010 at 6:55 am

    Oops, the code disappeared from the post. It is:
    wp_list_categories(’orderby=count&order=DESC&show_count=0&hierarchical=1&title_li=&depth=1′)

    • February 15th, 2010 at 12:17 pm

      Just get rid of the ‘orderby=count’ part. If it’s ordered by count, it’s ordered by count and that’s that ;-)

  • February 18th, 2010 at 2:25 pm

    Wow that is so user friendly! Love it- Thank you :)

  • February 25th, 2010 at 9:06 am

    Thank you so much for this plugin. This was just what I was looking for.

  • February 26th, 2010 at 11:09 am

    ... 版本 1.0.3 | 作者为 Wessley Roche | 访问插件主页 ...

Your Comment