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. *In WordPress 3.1, go to your Dashboard and drop down the Posts menu in the left-hand sidebar. Somewhere on that list will be Category Order. Click that, then drag and drop your categories. You must click the Order Categories button to save your changes before you leave the page (even if you’re just clicking More » to move to a page of subcategories).
  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

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

    Works fine in 3.0.1 as well. Thanks!

    • AM
      September 24th, 2010 at 6:09 pm

      Second that. Thanks for a nice clean plugin!

  • 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.

  • Bob McWackerhagen
    August 8th, 2010 at 4:27 am

    Seems to work just fine with Wordpress 3.01. Thanks so much! The other tool for this, My Category Order, did not work for me.

  • August 10th, 2010 at 1:28 pm

    Hm short question, is it possible to order Categories from a custom Post Type?
    If the answer is yes…. How? =)

    • Shanda
      December 9th, 2010 at 1:44 am

      I would also like to use your plugin for custom post type taxonomies.

      Is it possible? I am willing to help or donate if it needs to be developed.

  • ... Category Order – Beiträge lassen sich in WordPress in Kategorien einordnen, und diese Kategorien kann man sich im Menü anzeigen lassen. Da es sich bei WordPress ja ursprünglich ja um ein BLOG-System handelt, sortiert es die Kategorien zum schnellen Auffinden alphabetisch. Viele Websitebetreiber möchten aber die Kategorien als “Menüpunkte” nutzen und die Reihenfolge selbst bestimmen. Entweder muss man nun ein Text-Widget selbst erstellen und jeden Menüpunkt per Hand eintragen und bei Änderungen immer wieder updaten, oder man nutzt Category Order und sortiert seine Kategorien per Drag & Drop. ...

  • August 17th, 2010 at 1:00 am

    Tnx from Brasil!! D+++

  • serenekitchen
    August 17th, 2010 at 9:13 am

    i can bake you a cake!!!

  • August 17th, 2010 at 7:26 pm

    so easy I’m about to cry, only geeks can understand that ;-)
    thanks a lot from Hanoi

  • ... çevirdim. Eklentinin orijinal  ismi “Category Order”. İsteyen arkadaşlar buraya tıklayarak eklentinin geliştiricisini ziyaret ...

  • Natalie
    August 29th, 2010 at 4:13 pm

    it worked great on my site, which runs on wordpress 3.01. Thanks!

  • ... Category Order: I think this is self-explanatory, but it just helps make the place look a bit neater and shows some prioritisation. ...

  • August 30th, 2010 at 6:37 pm

    I am using the latest version of Thesis 1.8 with the latest version of WordPress.

    Having problem with your step 5: That’s it, now you can go to Manage » Category Order and reorder the categories the way you want.

    Able to activate your plugin, but can’t find in my list of Widgets . . . HELP.

  • September 8th, 2010 at 6:23 pm

    thanks so much! i spent few hours researching!!!
    hugs!

  • Daniel
    September 16th, 2010 at 4:13 am

    Thank you man :)

    This is brilliant and so helpfull. It’s a blast not having to plan ahead all of you’r catagories before creating them in order to get them in the right order

  • September 20th, 2010 at 5:33 am

    This works great! Thank you very much. :)

  • September 22nd, 2010 at 7:01 pm

    Activated this plugin on multi-site installation of WP 3.0.1 and it crashed the database server in about 1 min.

    Has it been tested on the new multi-site feature of WP 3.x?

  • September 22nd, 2010 at 9:11 pm

    ... der Link zur PlugIn Seite Dieser Beitrag wurde unter Meine Erfahrungen veröffentlicht. Setze ein Lesezeichen auf den ...

  • September 25th, 2010 at 1:10 pm

    ... Blog Reordering – πρόσθετο που επιτρέπει την ανακατανομή και την προσαρμογή της εμφάνισης των άρθρων ενός Ιστότοπου. Ο διαχειριστής με αυτό το πρόσθετο έχει την δυνατότητα να  επιλέγει την σειρά προβολής των άρθρων μίας κατηγορίας, ή ολόκληρου του Ιστολογίου. Η ιεράρχηση γίνεται με τη χρήση αριθμών κατά αυξανόμενη ή φθίνουσα (ascending, descending) σειρά, ενώ υπάρχουν και επιλογές για αλφαβητική ταξινόμηση ή σύμφωνα με την ημερομηνία δημοσίευσης του άρθρου. ...

  • September 27th, 2010 at 8:54 pm

    Wonderful plugin, works great in 3.0.1, thank you!

  • October 3rd, 2010 at 2:45 am

    What i big help this is. It will save hours of work on many websites.
    Works fantastic i just loaded in 85 links all in the right cats in seconds…

    Thanks

  • October 12th, 2010 at 9:34 am

    Installed the plugin - but I can’t find “Manage” ANYWHERE. What menu is it supposed to be in? Your instructions are pretty thin on that point.

    • Jeau
      November 21st, 2010 at 10:43 pm

      I had the same Q but just solved it.
      In the DASHBOARD, move your cursor to the POST icon. Then a drop down menu will show. “Category Order” will be one of the choices. Good Luck!

  • November 3rd, 2010 at 6:30 am

    Worked great on WP 3.0.1 on the first try! Thanks!

  • November 23rd, 2010 at 7:37 am

    Excuse me ، how the parameter should be exactly ??
    this is my function :
    wp_list_categories(”);

  • ... Download here Posted in Free Stuff « Website showcase: Large image backgrounds You can leave a response, or trackback from your own site. ...

  • ... Order (WordPress Guy) ...

  • December 6th, 2010 at 12:04 am

    ... Version 1.0.3 | By Wessley Roche | Visit plugin site ...

  • December 6th, 2010 at 8:06 pm

    Thanks for the info. Do you have any idea on how to re-order menu items.
    I installed Thesis - but can’t find info on this anywhere…

  • December 13th, 2010 at 8:38 am

    ... 使用很简单,下载Category Order插件,然后解压上次至wp-content/plugins/。然后后台激活插件就可以了。 ...

  • ... Visit Category Order Plugin page here ...

  • ... Category Order Plugin from wpguy offers an easy way for self-hosted Wordpress users to re-order their categories. 
The plugin offers a drag and drop interface making it easy to manage and re-order categories on the fly. ...

  • January 5th, 2011 at 4:37 pm

    Hello
    Using your excellent plugin on site http://www.tandooricookingexpert.com/ We have 115 categories in total. the plugin seems to have stopped working. it will no longer allow drag and drop to move order around. is there a parameter i could use to change this. i think it may be when we went into three digits, ie from 99 to 100 categories.

    • HOW
      January 13th, 2011 at 12:56 am

      wow you have more than 100 categories. thats next level.

  • January 6th, 2011 at 9:58 am

    This is a pretty good plugin than others like My Category Order, it works very well. Just because I’ve got too much plugins now could you please tell, is it possible to keep the order function or keep the current category order by code somewhere without plugin?

  • January 28th, 2011 at 7:38 pm

    this was the plugin i was lookin for , so nice of u to put this here……a heartily thanxxxx

  • January 29th, 2011 at 9:59 pm

    ... order of categories I installed a plugin called "Category Order" (Category Order | WordPress Guy) that was recommended in an earlier post so as to put categories in an order that is not ...

  • ... istediğiniz şekilde sıralayabilirsiniz. Wordpress Kategorileri Sıralama Eklentisi: İNDİR Beğendiyseniz ...

  • ... Category Order (by Wessley ...

  • KiFFiE
    February 18th, 2011 at 3:08 pm

    Hey, I’ve loved using this plugin on various sites, but I’m having problems getting it working in an installation in a subdirectory - thought this was fixed in v1.0.1 - what should I do, as can’t change the installations directory? Thanks :)

  • ... page order & category order: These plugins allow you to sort the order you want your pages and categories to show up on ...

  • Charlie
    March 16th, 2011 at 7:25 pm

    Thanks! Just what I needed. But please change the documentation to say:

    In WordPress 3.1, go to your Dashboard and drop down the Posts menu in the left-hand sidebar. Somewhere on that list will be Category Order. Click that, then drag and drop your categories. You must click the Order Categories button to save your changes before you leave the page (even if you’re just clicking More >> to move to a page of subcategories).

    Thanks again!

  • Aljaz
    April 22nd, 2011 at 4:23 pm

    I found this plugin very useful, thx. I do have a problem now: the drag & drop function doesn’t work. The mouse arrow changes correctly when I move upon the categories, but it cannot move them. I’m using wordpress 3.1.1

    Please help.

  • baksab
    April 24th, 2011 at 5:36 am

    same ..

    I found this plugin very useful, thx. I do have a problem now: the drag & drop function doesn’t work. The mouse arrow changes correctly when I move upon the categories, but it cannot move them. I’m using wordpress 3.1.1

    Please help.

  • April 24th, 2011 at 12:50 pm

    Did not work for me. Here is the calling script on my header.php

    php wp_list_categories(’title_li=’);

    Please give me a advice.
    thanks

  • Rachel
    May 12th, 2011 at 9:17 pm

    Worked beautifully! Thank you so much.

  • lauritz
    May 18th, 2011 at 3:41 pm

    the javascript drag and drop diddn’t work for me but it’s a nice plugin.

    TypeError: Result of expression ‘element.dispatchEvent’ [undefined] is not a function.

    could you pleas add custom post_type support and a settings page where you can specify in which post types the plugin should appear?

  • May 26th, 2011 at 9:02 am

    Hello
    I’ve upgraded my WordPress to 3.0.1 and plugin doesn’t work anymore :(
    The section where I can drag and drop categories in the order I want, does’t work anymore. It won’t drag or drop anything…. Anyboby had the same issue??
    Thank so much in advance!!!

  • May 26th, 2011 at 2:59 pm

    excellent !! thank you

  • clifton
    June 1st, 2011 at 4:49 pm

    Hello,

    What file can I find this (wp_list_categories) in?

    Thanks,
    Clifton

  • June 4th, 2011 at 3:27 pm

    Hi,
    Today I set some of my child categories as parent categories. But this plugin doesn’t recognise my new parent categories, it still orders my old parent categories but it doesn’t order my new parent categories. I can’t order my new parent categories, the ones which were formerly child categories of a parent category. How can fix this?

  • June 15th, 2011 at 1:39 pm

    Excellent plugin, especially if you are working on autoblogs.

    Cheers
    A

Your Comment