WordPress Plugin – My Category Order Archived

This page is an archive for the older versions of My Category Order. All new comments should be made here.

Gives you manual control over the order of your WordPress post categories by letting you set an explicit order. Works with subcategories too.

If you’d like to say thank you or make a donation please visit my Gifts and Donations page.

Download My Category Order:


  • Update 3/30/2008: For WP 2.5, I’ve moved all future downloads to the WordPress Plugin directory. This page will stay up as a testament to this plugin’s popularity over the past 2 years.
  • Update 2/09/2008: Works with 2.3.3, just copy taxonomy.php again.
  • Update 1/22/2008: Fixed a bug that cropped up in the 2.3 release. 2.3.2 is the only version where subcategories are working correctly. Also added Exclude and Include options to the widget so you can specify category ID’s there to exclude or include. Also cleaning house a little on the page, older comments might disappear.
  • Update 9/30/2007: Updated to WP 2.3. The category table got nuked this release so you’ll need to go back and order your categories again.
  • Update 6/30/2007: The release you’ve all been waiting for!!! Built in widget support, hacking the widgets.php file is a thing of the past. HUGE thanks to Tony for the code, much easier to “widgetize” something than I previously thought.
  • Update 5/17/2007: Javascript include bug fix, won’t mess up the editor now, redownload if you had the previous 2.1.3 version. 2.2 update coming soon but current version should still be compatible. Things are good with 2.2.
  • Update 5/12/2007: Made some changes to how categories are differentiated between post and link categories. Now any category with 0 links in it is considered a post category, this allows the use of empty categories for better categorization and still have them show up in the plugin. Thanks for the feedback and testing Marci.
  • Update 5/10/2007: Big update! I rewrote the interface and replaced the unfriendly up and down arrows with spiffy new drag and drop ordering. Check it out, definitely worth the upgrade, I’ve only tested on 2.1.3 but it should work on any 2.1.x install.
  • Update 1/22/2007: Updated to WP 2.1, theme template change needed, see update below.

With the success of my first WordPress plugin My Link Order, I got a good number of requests asking for something similar that gave control over the order of post categories instead of link categories. I listened and here it is, My Category Order.

Installation instructions:

  1. Upload the mycategoryorder.php to /wp-content/plugins/ on your server.
  2. 2.3 and above: move taxonomy.php to /wp-includes/
  3. Activate the My Category Order plugin on the Plugins menu.
  4. Plugin tab appears under the Manage menu, give the categories an initial order.
  5. WIDGETS: Just drop the “My Category Order” widget in your sidebar that gets installed with the plugin and that’s it!
  6. Modify sidebar template to use new sort attribute, see below.

Sidebar Modification: If you aren’t using widgets then you’ll need to change your template to use the new sort parameter, “orderby=order”:


If you have any problems let me know, I am more than happy to help resolve any issues you may have. I’ll respond to your comment through email so be sure to put a valid email in. Even if you don’t have problems leave a comment or throw a couple bucks to buy some beer.

585 Replies to “WordPress Plugin – My Category Order Archived”

  1. It’s a pity get_categories doesn’t seem to respond to ‘orderby=order’. I can usort the resultant categories so it’s not insoluble, but I think it ought to.

  2. Hi,
    great Plugin. Here one more idea. To use your plugin in websites wich use images for the titel it could be useful to implemnet a checkbox to fade out the default titel “catgories” if no titel is typed in the widged.
    Best regards

  3. First of all, let me say I am using the plugin successfully in my blog. It works just fine!

    However, I couldn’t stop being bothered that it patches a core WordPress file. Digging a little bit, I noticed that the function that is being patched accepts filters, which means that you can attach custom code to it without touching the WordPress files.

    Is that an alternative you considered?


  4. Hi,
    If you aren’t using widgets, modify sidebar template to use correct orderby value: wp_list_categories(‘orderby=order&title_li=’);
    This does not works in wordpress 2.8.5

  5. Oh my. This widget it perfect! Now sure why something so simple can’t be done in the wp system to begin with but I guess that leaves the doors open for guys like you to use your creative talents. Thank you!

  6. hey there,

    i love the idea of your plugin and GREAT job on the idea, especially on the drag&drop interface on the backend!

    anyhow, the changes i make there are not visible on the frontend of my site, even after i inserted the code snippet you suggest :(

    i read some other users are having the same problem. is there any kind of a cure yet? would be amazing.

    thanks in advance!!

  7. Hi there
    Your plug in is very very useful. The plug in works with the categories listed on my side bar but it deosn’t work on the categories listed in the header. ( same list different position).
    Can you please help me make the plug in organize the categories in the header as well.
    Thanks In advance

  8. Hi,

    First I love your plugin, so thank you.

    I was wondering if there was a way to make the sub/child categories collapsable/folding either on click or hover in the drop down? Hopefully that makes sense. I’m trying to have only the parent categories show when the drop down is pulled up and then either on hover or click have the child categories appear.

    Thank you.

    Duane Smets

  9. @Stephanie Leary – it’s working ok for me in 2.9. Have you visited the “My Category Order” admin page after upgrading and then clicked “Click to Order Categories”. That’s a must for me after every WordPress upgrade.

  10. Love the plugin… I have one suggestion to include on the instruction tab @ WP.org. After I upgraded to WP 2.8.6, the plugin was broken. I had to go back in and reset the file perms on wp-includes/taxonomy.php because for some reason, when WP upgrades, it does not respect file perms on that one and it changes it back to 644. It took me a while to figure out why the plugin was broken, so maybe on the instruction tab, you might mention that you have to edit file perms on taxonomy.php after each WP upgrade.

    Thanks for a great plugin!

  11. Hello there,

    I would like to know if there is a way I can get category list for a particular Post using your sorting method. You can see the “Starring” section on each latest movie on my website. I want to order them plus want to keep my look and feel.

    Any help is highly appreciated.


Comments are closed.