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 | 访问插件主页 ...

  • March 13th, 2010 at 4:22 pm

    That’s a great plugin… But for some reason, it just doesn’t seem to work on my site.. It doesn’t work perfectly. Any suggestions!

  • March 16th, 2010 at 11:24 am

    Thanks for this wonderful, wonderful, wonderful plugin, for the second time round! Thanks Wes Roche !!!

  • March 20th, 2010 at 12:45 pm

    Hi, I use a theme (iTeck) that parses the categories like this (sidebar.php):

    wp_list_cats(’sort_column=name&optioncount=1&hierarchical=0′);

    How must I parse the categories here in order to have your plugin working correctly?

    Some order in main categories (parent) is fine but some sub-categories are still parsed out of the “Category Order” custom order ;)

    Thank you very much!!

  • March 20th, 2010 at 1:00 pm

    oh, I get myself a provisional solution:

    wp_list_cats(’optioncount=1&hierarchical=1′);

    Thanks!

  • March 20th, 2010 at 5:03 pm

    I just found your fantastic plugin. Thank you so much. It is clean easy install, and works perfectly with 2.9.I will be passing your site along to my friends for sure

    Dave T

    ENJOY THE DAY

  • ... Category Order ...

  • ... Category Order ...

  • April 5th, 2010 at 11:56 pm

    Just wanted to thank you for the excellent plugin. Using it on my developing website, absolutely the simplest fix to what should be an already existing feature in WP. Thanks again.

  • April 6th, 2010 at 10:48 am

    Hi,
    this plugin doesnt work at 2.9.2. Maybe there is a jquery problem. Will you publish new version.

    Thanks.

  • April 10th, 2010 at 3:10 pm

    I’m also having trouble with WP 2.9.2 - the parent/sub situation is creating a problem. Right now the subs are displaying on the main menu and the parent is not showing at all. Parent is “News From…”; subs are: “Seymour”, “Black Creek/Nichols”, and “Schiocton”.
    Thanks for any help.

  • April 14th, 2010 at 4:46 am

    ... ended up having to use a wordpress plugin to get the categories ordered dynamically. Check out the Category Order plugin for more ...

  • khairul
    April 18th, 2010 at 12:23 pm

    thx very much!!!!!!! i will donate yo u!!

  • Andrew
    April 23rd, 2010 at 7:42 pm

    Worked for me. Thanks mate!

  • LondonLee
    April 25th, 2010 at 3:44 pm

    Where is “Manage » Category Order”? I installed the plugin but can’t find a way to actually use it.

  • May 4th, 2010 at 9:38 am

    hello

    nice plug in. i use over there ( http://www.monk.gr) and its work great.

    thanks

  • May 7th, 2010 at 3:43 am

    Thank you, very useful plugin, which also works with the very latest version of Wordpress :)

  • ... Category Order カテゴリーの並べ替えを簡単に。便利です。 ...

  • May 17th, 2010 at 10:23 am

    Works like a charm on our site! Thanks a million!

  • mateo
    May 18th, 2010 at 10:47 pm

    Thanks a lot for this plugin !

  • alfie
    May 20th, 2010 at 4:12 pm

    I attempted to use your plugin category order. I am using WP 2.91, PHP 5.1, Theme Atahualpa 3.4.6. I activated the plugin but cannot find Manage>> CATEGORY ORDER. My application requires ordering the categories in a Bar menu in Atahualpa. Can anyone guide me to where I can perform the re-ordering of categories.

  • alfie
    May 20th, 2010 at 4:33 pm

    I’m back. I finally found where I could manage category-order. However I tried the drag and drop of catregories and saved but when i returned to web site nothing changes. In addition to re-ordering i would like to maintain the bar menu at only one level which is about 6 categories but the plugin does not seem to have capability to limit category count. But first re-ordering does not work ???

  • alfie
    May 20th, 2010 at 10:12 pm

    London Lee - I found manage under the Posts icon (category order)

    Andrew, Monk, konisto, Mateo —- It works for you and I’m glad. So far I haven’t had any luck. I am using WP2.9.1, Atahualpa 3.4.6, PHP 5.1. Please read my comments above . If anyone can make any suggestions, it would be appreciated.

    If I can’t use re-order plugin, I would be satisfied with a category limit count but I can’t seem to get any results with that either.

  • ... used this code in the ‘What I do’ page on this site in combination with Wessley Roche’s Category Order plugin. It’s important to note that if you do use Wessley’s plugin, you need to leave the ...

  • ... Category Order ...

  • ... Category Order又一个分类排序插件,在后台通过拖放即可实现分类的重新排序。 ...

  • ... to order the categories following your (or your clients’) whishes, and I use the well done Category Order, but it doesn’t work with WPML, unless you try to force the plugin to eat your manipulated ...

  • Nicolas
    July 7th, 2010 at 2:18 pm

    Very interesting. Are you planing it for 3.0 custom post type and their custom taxonomies?

  • July 15th, 2010 at 6:12 am

    Thanks! This worked like a charm… I couldn’t get ‘My Category Order’ to format correctly for my gallery categories, but your plug in did it right on the first try without messing up my formatting. Thanks so much!!

  • July 16th, 2010 at 10:46 am

    Unfortunately I cannot make it work.
    WP 2.92 Chinese Simplified version.

    My category name is in Simplified Chinese and I am using FF3.6.

    When I click and start dragging one category, it just show a normal text pointer that highlight text.

    I am using CO 1.0.3.
    Any advice?

  • July 20th, 2010 at 3:58 pm

    Hi, The Category Order V1.0.3 plugin is not Compatible with wordpress 3 and new updates

  • July 20th, 2010 at 6:21 pm

    Thank you very much Sir, very simple to install/use and works perfectly with wordpress 3.

  • ... Category Order カテゴリの表示順を簡単に変更できるプラグイン ...

  • ... Category Order – This seems like a simple plugin but there have been countless times where I’ve needed ...

  • Greg White
    August 1st, 2010 at 9:12 am

    Works fine in 3.0.1 as well. Thanks!

  • David Gard
    August 6th, 2010 at 4:16 pm

    Hey,

    Have been using this for a while and it works well.

    Have just added a custom post type with a custom taxonomy to my site, just wondering if there is a way of altering the code easily so that I can have it on that menu and displaying the custom taxonomy, rahter than ‘category’?

    Thanks.

Your Comment