Wordpress Plugin - My Category Order
Gives you manual control over the order of your Wordpress post categories by letting you set an explicit order. Works with subcategories too.
Download My Category Order:
- WP 2.5: Now hosted at the Wordpress.org Plugin Directory
- WP 2.3.2: mycategoryorder2-3-2.zip
- WP 2.3: mycategoryorder2-3.zip
- WP 2.2: mycategoryorder-2-2.zip
- WP 2.1: mycategoryorder2-1-3.zip
- WP 1.5 & 2.0: mycategoryorder.zip
If you find my plugins helpful consider giving a small donation, I provide support in my scarce, spare time.
- 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:
- Upload the mycategoryorder.php to /wp-content/plugins/ on your server.
- 2.3 and above: move taxonomy.php to /wp-includes/
- Activate the My Category Order plugin on the Plugins menu.
- Plugin tab appears under the Manage menu, give the categories an initial order.
- WIDGETS: Just drop the “My Category Order” widget in your sidebar that gets installed with the plugin and that’s it!
- 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”:
wp_list_categories(’orderby=order&hierarchical=0&title_li=’);
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.
343 Comments Add your own
1. Christian Arroyo | June 13th, 2006 at 10:40 am
solved the problem ignore the comment after this one.
2. Mem | June 13th, 2006 at 6:30 pm
Great plugin but the sub-categories disapear .. I tried doing wp_list_cats(’sort_column=my_order&optioncount=1&hierarchical=0′); to get the sub catergories to be viewed but it all goes back out of order. Any help or Tips???
3. Mem | June 13th, 2006 at 6:44 pm
oh and you may want to fix the name on #3 (instructions)
Activate the My Link Order plugin on the Plugins menu
4. Andrew Charlton | June 13th, 2006 at 9:22 pm
You’re right, those parameters make it do weird things. I had tested subcategories without the hierarchical parameter and it defaults to true when it is missing. When hierarchical=0 is set, it treats subcategories the same as the top level categories so they get placed wherever they got set to. With the following I get the correct output (except my theme isn’t up to par for displaying subcategories) but it does work:
wp_list_cats(’sort_column=my_order&optioncount=1&hierarchical=1&hide_empty=0′);
The hierarchical=0 is your problem (assuming you want your subcategories to be displayed under their parent). If you want to be able to put subcategories anywhere in the list then we have a problem. I’d have to look at the code a little more to see if this is possible, but as is, my plugin and subcategories only play nice with hierarchical=1 or omitted.
5. Mem | June 13th, 2006 at 10:52 pm
I tried it (without the hide_empty part) but It’s still playing up and now it’s not showing one of the categories either.
this is my normal code :
wp_list_cats(’sort_column=name&optioncount=1&hierarchical=0′);
I could always do things the manual way I guess like I did with the Navigation but I guess A-Z will do for now.
6. Andrew Charlton | June 14th, 2006 at 7:38 am
I might not have been very clear, but right now my plugin will NOT work with hierarchical=0. My plugin assumes that subcategories will be listed under their parent like when hierarchical=1 or when it is omitted.
7. Mem | June 14th, 2006 at 7:19 pm
I can just put them as main cat’s .. duh that’ll work lol
8. Mem | June 14th, 2006 at 8:04 pm
(Last post lol) Thanks for the plugin .. works a treat. I have all my files in the main category instead of sub categories. It is now active and working on my site :)
Thanks.
9. Andrew Charlton | June 14th, 2006 at 8:38 pm
Cool glad you got it going.
10. MO | June 21st, 2006 at 6:01 pm
SWEET plugin!!! Thank you, this is precisely what I needed. Worked perfectly right out of the box, which is well above par for the many, many plugins I’ve installed lately. Excellent job!
11. Lupa SW | June 25th, 2006 at 7:37 pm
Smashing plugin! I really like it, it cleans things up for me quite a bit. Thanks very much! ^_^
12. Lupa SW | June 25th, 2006 at 8:33 pm
Sorry for the double-comment, I just had something occur to me. I’d like to make the categories bold, as a way to further set them apart from the indented subcategories, but I have no idea how to go about doing this. I took a look at the files included, but I know nothing about how plugins work, and I’d likely muck it up something horrible. Thanks a million for your time, and thanks much again for making such a nifty mod!
13. Robert | June 30th, 2006 at 6:25 am
Love this plug-in!
Question:
Why do I loose the number of posts to a catagory when activating this plug-in? How do I keep that information?
Thanks,
Robert
14. Jo | June 30th, 2006 at 10:06 am
Sorry but this is my normal code :
wp_list_cats(’list=0′);
and if i write your code it givs me the text:
Parse error: parse error, unexpected ‘=’ in /web/htdocs/www.jodesign.eu/home/wp-content/themes/jodesign/sidebar.php on line 13
What can I do?
Thank, Jo
15. Andrew Charlton | June 30th, 2006 at 10:18 am
Robert,
There are different options you can turn on when you call the function to display the categories in your template’s sidebar file. Should be something like ’sidebar.php’ in your template folder. In there find where the function wp_list_cats is listed. You need the optioncount=1 option. The below statement will display categories in the order you specify and display the post count.
wp_list_cats(’sort_column=my_order&optioncount=1′);
16. JD | July 9th, 2006 at 9:01 pm
I use WP 2.03 with the semiologic theme/CMS.
The following appears in the sidebar-ext.php (not sidebar.php) file:
[code][/code]
I changed it to:
[code][/code]
But I can’t get it to work. Any ideas?
Thanks!
17. JD | July 9th, 2006 at 9:02 pm
Sorry, the code dissapeared in my previous post :(
Should be:
wp_list_cats(’sort_column=name&optioncount=0′);
was changed to
wp_list_cats(’sort_column=my_order&optioncount=1′);
18. Ed Morrow | July 15th, 2006 at 6:12 am
Great plugin, but I’m having trouble with a second level of subcatagories.
If I have more than one level of subcatagories, the next regular category is displayed as a subcategory of the previous regular catetory.
Example:
[My actual categories are...]
Schools
-High Schools
–Whittier High School
Sports
[They are displayed as...]
Schools
-High Schools
–Whittier High School
-Sports
Thanks for whatever help you can provide.
Ed
19. Ed Morrow | July 15th, 2006 at 6:25 am
As a work around to my post #18, I have hidden the second level subcategories in the sidebar.php “list_cats” “exclude” section.
This will work great for me.
Your plugin is great and has saved me a great amount of time and mad my website look a whole lot better.
Thanks again
Ed
20. Paul O Mahony | July 28th, 2006 at 2:41 am
Hi
My original code in sidebar.php is
wp_list_cats();
but when I replace with
wp_list_cats(’sort_column=my_order’);
I get following error
Parse error: syntax error, unexpected ‘=’ in
any ideas,
thanks
Paul
21. Andrew | July 28th, 2006 at 8:07 am
Paul,
One other person had this problem and didn’t get anywhere but I do have an idea now. WP replaced my apostrophes with curly single quotes for whatever reason, so if you copy and pasted off the page it could be using the wrong characters. Try replacing the quotes around sort_column=my_order with plain old ‘ apostrophes. If that isn’t it then I might be stumped.
22. lausse | August 8th, 2006 at 4:27 pm
Thanx a lot - at last I found this! I tried so many different - but this is working with Category Visibility-RH (http://ryowebsite.com/?p=46)
23. pda4peds | August 8th, 2006 at 6:30 pm
the following error appeared when I clicked my category order tab in the manage tab
WordPress database error: [Access denied for user 'yscr_bbNfuP'@'localhost' to database 'blog']
ALTER TABLE wp_categories ADD `cat_my_order` INT( 4 ) NOT NULL DEFAULT ‘0′
WordPress database error: [Unknown column 'cat_my_order' in 'order clause']
SELECT * FROM wp_categories WHERE category_parent = 0 ORDER BY cat_my_order ASC
can you help!
24. Andrew Charlton | August 8th, 2006 at 6:55 pm
Database errors have been rare and this is a first for this particular problem. The problem is that the account that connects to your database does not have enough rights to modify the structure of the database, which my plugin has to do. You will have to get into your database with something like phpMyAdmin (using an account with full access) and make sure that yscr_bbNfuP account has permission to alter the database.
If this is over your head then I’m afraid there isn’t much you can do unless you have a friend who is familiar with databases and can take a look at it for you. If you have any other questions let me know.
25. hjqtjy&hellip | August 13th, 2006 at 8:24 am
mbuqcun…
tnsfpztehuw xqhsjmjbak xyhiffbvju hvxevxm rtgdbkst…
26. wuyxkgbs&hellip | August 13th, 2006 at 11:50 am
fsmcmghyyk…
vsvudtgcrbk mrnhzbzdu uaitmpyxbjc ysnzexro bgtgczneho…
27. Linda K | August 19th, 2006 at 6:04 pm
Thanks for the plug-in — its very useful.
I have a problem though - I’m trying to display an unordered list of categories and subcategories. The plugin seems to be acting strange in relation to my stylesheet … When the plugin is deactivated, my main categories appear in bold with the sub-categories indented beneath them in normal type as I would like to see them. When I activate the plugin only the first main category is bold and everything else acts like sub or sub-sub categories of the first main category … does that make sense?
I’m not sure if its an anomoly in my stylesheet (it was really painful to get it to work the same way for firefox and IE but finally it does) or something odd going on in the plugin -
Hope you can help …
28. Linda K | August 19th, 2006 at 6:12 pm
Please disregard/delete my previous comment. Its not this plugin causing the problem - its the category visibilty plugin.
Sorry to bother you!
29. ST | August 23rd, 2006 at 10:05 am
Thank you very much for this plugin. It worked flawlessly and saved me from the dreadful task of mucking up with the database.
30. Rita | August 26th, 2006 at 6:20 am
Is it possible for this plugin to get a category-[#].php page to sort in the particular order specified? Or is it just for the sidebar? My client has asked me to have the specific categories sort on the category pages in an explicit order.
Please forgive me if I am missing part of the big picture, I am very new to this.
Thanks.
31. David Woolley | September 18th, 2006 at 11:59 am
I’m not using categories and would like the Categories list to disappear entirely from the sidebar. Does your plugin make this possible?
32. Joy Keller | September 20th, 2006 at 9:04 am
Above: David Woolley
If you don’t need the “Categories” to show up on your blog, you can delete that portion of code from the “sidebar.php” file in the theme you are using.
There should be a category heading - probably a h2 tag that says “categories”. Delete that heading, as well as the list (ul) or list item (li) that holds the Categories. Email me if you have questions.
i DO have an issue with this plugin regarding post count to a category. This is the code that I have:
wp_list_cats (’sort_column=my_order&optioncount=1′);
But the post count still isn’t showing. I’m on WP 2.0.2. Any help is appreciated.
33. Anne | September 21st, 2006 at 12:31 am
Got it! Thanks very much. I’m glad to have this new function. Terrific!
34. zahid | September 25th, 2006 at 12:24 pm
This is a great plugin, this should come with wordpress but don’t know why they never thought about it. Thanks!
35. mingkan | September 30th, 2006 at 12:29 pm
I don’t know why. I have just upgrade MySQL 4 to 5. After upgraded, I can activate others plugin with no problem.
Only mycategoryorder and mylinkorder have problem. When I activate them,
Every page become blank. Please advice!
36. Marci | October 3rd, 2006 at 8:51 am
Wierd problem…this was working just fine at one time. In admin now, it says
“Table ‘timeless_phpb2.tw_wp_categories’ doesn’t exist”
It seems to be pulling it’s base information about the database name from somewhere, and is looking for a database for phpbb. Where is it looking for this information? All I see in the plugin is $wpdb, which I would think would give an accurate database name. Thanks in advance.
37. Andrew Charlton | October 3rd, 2006 at 9:01 am
People have had this problem before and my only guess is that it is a conflict with another plugin that is misbehaving and changing the $wpdb object to point to another database. Have you installed any plugins or phpb2 lately?
Andrew
38. Marci | October 3rd, 2006 at 9:14 am
Oh of course….I didn’t think of it, but yes…I installed WPHPBB which uses phpbb for the comments. Ugh. I really need it for this project. As a workaround, I went to my MySQL database and manually numbered the categories in cat_my_order, which worked OK (set my custom query to sort by that field). But ultimately I need this to be fixed. I assume there is a WP file somewhere that is being changed….what file would that be? I will need to alter it back and test to see what breaks. Thanks.
39. Andrew Charlton | October 3rd, 2006 at 9:20 am
For WPHPBB I wouldn’t know what to change, but you could edit my plugin files to use the correct hardcoded database and table name instead of the $wpdb object. For a while my plugins actually used the hardcoded default names until I got complaints. If you need help changing the database references let me know.
40. Marci | October 3rd, 2006 at 10:09 am
Great idea. I tried it, but I will need a little direction, I guess. I’m getting a sql error, so I must be doing something wrong. It seems the easiest thing would be to make $wrdp = the correct path, but if you’d give me the exact syntax it would help. I’m a php noob. :)
41. Steven Clift | October 4th, 2006 at 10:55 am
Where should I see the “arrows” or be able to use the keyboard arrows to change the order.
I followed the instructions, but I can’t select and move an existing category and move it.
Cheers,
Steve
P.S. I need help ASAP, so I’ll PayPal you $50 to help me make this work. I am using WP to host an online candidate debate and the categories need to be listed just so.
42. Steven Clift | October 4th, 2006 at 11:15 am
Oh, I am using WP 2.0.4
43. Andrew Charlton | October 4th, 2006 at 11:17 am
Check your email Steven
44. Aggi | October 9th, 2006 at 5:09 am
Thank you thank you thank you!
I’ve been having terrible trouble with the list_cat function, as I’m writing a page in Icelandic and special Icelandic characters won’t alpabetize correctly… so once again: THANK YOU!
45. Aggi | October 9th, 2006 at 5:10 am
Just one question: I’m also having the same problem with sorting my authors… Do you think there is a plugin on the way to sort authors manually? :)
46. Yassi | October 17th, 2006 at 10:28 am
oh..thanks…this plug in was superb !
47. May | October 23rd, 2006 at 1:01 pm
Hi,
I have installed this as per instructions and have tried to order the categories by using the up and down arrows and when I click on click to order category, nothing happens.
BTW, the graphics for the arrows are not showing up, but I checked the ftp files and the files are all there in the folder. Your help would be great.
Thanks.
48. Dwayne E. Hamm | October 26th, 2006 at 12:33 pm
Awesome plug-in. Thank you so much for taking the time to put this together. It should be part of the next upgrade package for WP.
49. albs | October 28th, 2006 at 5:39 pm
in your plugin you use this code to control if there is a column
$query = mysql_query(”SHOW COLUMNS FROM $wpdb->categories LIKE ‘cat_my_order’”) or die(mysql_error());
if (mysql_num_rows($query) == 0) …
—–
but if I want to control if there is
a table, how can do?
is there a link where is explained similar solution for this problem?
can send me an email if you answer here? thanks
50. PJP | November 1st, 2006 at 12:50 am
it can work under the default themes,but doesn’t support k2,sub-categories don’t under their parent-category in the sidebar,how to do it?
51. Jason Dunn | November 3rd, 2006 at 11:38 pm
I really want (need) this plugin to work, but I just can’t quite seem to get it to function properly. I have three link categories on my home page (Link Love, Current Projects, Archived Projects) and no matter what I try, they’re always in alphabetical order on my home page. I’ve implemented your custom code, changed the order, clicked “CLICK TO ORDER CATEGORIES” and nothing changes. Help! :-)
52. pingfan | November 7th, 2006 at 4:57 pm
can i use this plugin for WP 2.0.5? Well i have tried anyway, but it didn’t work.
also, does “my category order&my link order” work on all kind of templates?
53. vegoh | November 22nd, 2006 at 5:14 am
hello,
it doesent work!
i have install right, and if you want to order it witz the keyfiles, the kathegories didnt move!!
54. vegoh | November 23rd, 2006 at 5:24 am
HI?
I want to get an answer please!
55. Ayerst Carr | November 27th, 2006 at 2:55 pm
Guys, please forgive me for being such a dunderhead, because this topic has been discussed over and over in these comments. But I just cannot seem to get the subcategories for Articles By Experts working. Here is the output:
Welcome
Combat Training
Strength Training Days
Articles by Experts
Advanced
Intermediate
Beginner
Nutrition
Diet
Proper Breathing And Exercise
Medicines and Side Effects
Personal Stuff
The D Word
Uncategorized
PodCasts
What I want to see is this:
Welcome
Combat Training
Strength Training Days
Articles by Experts
Advanced
Intermediate
Beginner
Nutrition
Diet
Proper Breathing And Exercise
Medicines and Side Effects
Personal Stuff
The D Word
Uncategorized
PodCasts
I am using wp_list_cats(’sort_column=my_order&optioncount=1&hierarchical=1&hide_empty=0′); as the code to call the categories, but it just ain’t happenin.
Are my expectations outside the capabilities of this awesome plugin?
56. Ayerst Carr | November 27th, 2006 at 2:59 pm
OOPS, the comment format did not allow for indents. Dang.
Welcome
Combat Training
Strength Training Days
Articles by Experts (indent starts here)
57. Ayerst Carr | November 27th, 2006 at 3:01 pm
Well, I cannot get it to display like I want. I am sorry for the goofy posts. Bottom line is I want the 3 subcategories of Advanced, Intermediate and Beginner to be indented.
Make sense?
58. Ayerst Carr | November 27th, 2006 at 3:04 pm
Pingfan and Vegoh, make sure that you are using a basic
in your sidebar.
That is necessary in order to get a basic listing of your categories in the order you want.
If you have subcategories, I will post a message once I get my subs working,
59. Ayerst Carr | November 27th, 2006 at 3:19 pm
And yeah, I think you are awesome :)
60. Andrew Charlton | November 27th, 2006 at 3:23 pm
Ayerst,
I’m assuming the categories and subcategories are in the order you set
so I’m pretty sure this is a problem with your theme (display problems
almost always are). I checked out your site and looked at the page and
the HTML being outputted is correct. The problem is your theme’s CSS
does not handle the nested
the subcategories get put into. Try adding the following to your style.css file:
.children {
padding-left: 10px;
}
Let me know how it goes.
61. Ayerst Carr | November 27th, 2006 at 4:22 pm
Andrew, I will give it a try.
62. Ayerst Carr | November 27th, 2006 at 4:29 pm
Here is what I did. Let me know if this is what you had in mind.
I added
children {
padding-left: 10px;
}
to my CSS
Then I went into sidebar and added the class to the categories UL like so:
Categories
Then I refreshed the web site and the categories did not change.
I look at the source code, and where you would expect to see a nested UL, you don’t.
Hmmm veddy innerwestink!
63. Ayerst Carr | November 27th, 2006 at 4:30 pm
And I made sure there was a dot in front of “children” in my css sheet.
64. Andrew Charlton | November 27th, 2006 at 4:39 pm
Alright I see what is wrong, this should work for sure, put the following code at the bottom of the CSS file, the code that sets the margins and padding to 0px for the lists will override it if it is above it.
ul .children {
padding-left: 10px;
}
65. Ayerst Carr | November 27th, 2006 at 4:50 pm
Amazing. Simply amazing. I would never in a million years have guessed that something like this would have worked.
Andrew, you are brilliant! I really admire people like you for being able to solve problems like this.
66. Ayerst Carr | November 27th, 2006 at 4:54 pm
One thing I was wrong about: The nested UL was in fact there all along. I just didnt see it when I looked it the source code. It was hiding in the code all along. Your plugin was working all along. So, the class file makes perfect sense now :) Good solution.
67. Andrew Charlton | November 27th, 2006 at 5:04 pm
Glad it is displaying how you want now. Little stuff like that usually has a pretty simple solution, it is just a matter of narrowing down the problem and getting the fix in. Be sure to check back for upgrades whenever you update to a new version of WP, especially WP 2.1 since my plugins as they are will break. I’ve got new versions lined up and will hopefully get some more improvements into them.
68. Ayerst Carr | November 27th, 2006 at 8:24 pm
OK Andrew. I use 2.05 WP at the moment.
69. Ayerst Carr | November 28th, 2006 at 6:08 am
Andrew, mind if I pick your ample brain for some ideas regarding traffic?
I know blogs are all the rage, but what makes some blogs more popular than others? I love my blogs (The fitness one in particular) but I am not sure how to drive traffic to it. And I want to drive traffic to it because I want to make it appealing to sponsors (email me at webmaster at totoalphysiqueonline dot com and I will fill you in on what I am trying to do. Maybe you might have some suggestions on how I could achieve my goal.
Thanks
I also use ichat and yahoo messenger. spudnutsncoffee is my handle for both of those.
70. Marci | December 12th, 2006 at 8:58 am
I’m back, with more DB issues. For some reason, I am now getting the following error message when I click on My Category Order in the menu. “You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘->categories LIKE ‘cat_my_order” at line 1″
I used to at least get the main page. Any help?
71. Andrew Charlton | December 12th, 2006 at 9:24 am
This is the query that is bombing out:
SHOW COLUMNS FROM $wpdb->categories LIKE ‘cat_my_order’
There’s 2 things that lead me to think this is a bigger WP problem, one is I’ve never had anyone report this problem and two it looks like the WP database class is malfunctioning. The first part of the code it lists in the error “->” means $wpdb->categories isn’t being translated into the table name like it is suppose to. I really have no clue what would cause this, have you upgraded WP or any other changes to your install recently?
72. Lazaros | December 14th, 2006 at 3:16 am
Hi i realy like your work, but on my sidebar i have the following:
when i insert your :wp_list_cats(’sort_column=my_order&hide_empty=0′);
i can see my categories, the plugin is activates and i have arrange the sort of my categories!
could anyone help me solve this one.
73. Lazaros | December 14th, 2006 at 3:58 am
Hi again on my sidebar i have the following:
i download the sidebar and work on dreamweaver but when i upload the file the categories doesn;t show up?
74. Lazaros | December 14th, 2006 at 4:25 am
Any way i just solve it by myself thanks anyway…. keep up the good work.
75. Jesse | December 28th, 2006 at 12:25 pm
thank u so much.!
76. alayassir | January 4th, 2007 at 9:38 am
Paul O Mahony ===>>>>
code:
wp_list_cats(”sort_column=my_order”);
77. Lazaros | January 19th, 2007 at 1:45 am
hi i just upload and activated the plugin i change on sidebar.php my list_cats
on my website i have the following
i change multiple times but when i change the sidebar i cant see any of my categories just the links.
78. Arno | January 22nd, 2007 at 2:03 am
Very nice plugin, I was looking exactly like somthing like that
Thanks a bunch!
79. Lace | January 22nd, 2007 at 4:04 am
Do we know if “My Category Order” is compatible with WordPress 2.1 yet?
80. Andrew Charlton | January 22nd, 2007 at 9:56 am
I have updated My Category Order for 2.1, but just haven’t posted up the new version yet. I’ll make the 2.1 version available soon so you and others can get a jump on the upcoming release.
81. Lace | January 23rd, 2007 at 8:05 am
Hey Andrew,
Thanks for the update. I’m having a tiny prob with it (or rather my ability to use code lol.)
This is what I had before the update when everything appeared fine:
Register'); ?>
Recent Posts
',''); ?>
Categories'); ?>
Archives'); ?>
My prob is that things like “We Support:” is showing up in there (Left sidebar.) “We support:” was a link category in the right sidebar only.
Any idea how I can fix this?
Thanks bunches,
Lace
ps you can see my site at memorylaneproducts.com
82. Lace | January 23rd, 2007 at 8:08 am
darn…
** Categories’); ?>
**
83. Lace | January 23rd, 2007 at 8:13 am
oh good grief! Do I get an “A” for effort yet?! :D
You can see what I had up before here: http://wordpress.org/support/topic/101790?replies=1#post-502982
L
84. Lace | January 23rd, 2007 at 5:29 pm
wp_list_categories(’orderby=order&hide_empty=0&title_li=’);
change didn’t fix it. Any more suggestions?
L
85. Ayerst Carr | January 27th, 2007 at 5:25 pm
Hi Andy.
I am trying your new plugin for WP2.1 and I am using
wp_list_cats(’sort_column=my_order&optioncount=1&hierarchical=1&hide_empty=0′);
What is happening is strange.
Categories are not only being displayed out of order, but all my blogroll links are being displayed along with the categories!
Whats going on?
86. Ayerst Carr | January 27th, 2007 at 5:34 pm
OK, now I am using :
wp_list_categorieswp_list_categories(’orderby=order&optioncount=1&hierarchical=0&title_li=Categories’);
as per your suggestion at the top of the page. I must have been using the wrong code. The blogroll is gone from categories, however my subcategories are gone.
Any suggestions?
87. IvO | January 30th, 2007 at 9:31 pm
Hi!
i have a diferent the and I have this function to lis categories:
What do I have to change, because I installed your awesome plugin and doesn´t affect the category orders I want.
Best!!
88. jts3k | February 3rd, 2007 at 9:19 am
Hi Andrew,
I have a question regarding what needs to be done to use this plugin with WordPress 2.1. When you say:
you now must use the following function… :
wp_list_categories(’orderby=order&optioncount=1&hierarchical=0&title_li=Categories’);
Does that mean the code should be inserted in my site’s functions.php doc? Or is this line to be inserted in the template that lists my categories (in my case the header, not the sidebar)?
Thanks for the great plugin!
89. Andrew Charlton | February 3rd, 2007 at 11:09 am
In your case it would be your header template. Your function call might not match the examples I have given, you really only need the ‘orderby=order’ for it to work. If you have any trouble with it, copy and paste your template to me and I’ll take a look.
90. david | February 6th, 2007 at 8:36 am
I am using wordpress 2.1
but I think my theme is a little older
I have this as my category code in my side bar
What code would help me out so it works correctly I did it once but it seemed to shift my blog to the right, so I must have blown it, could you help me out? Thanks
91. david | February 6th, 2007 at 8:39 am
I am using wordpress 2.1
but I think my theme is a little older
I have this as my category code in my side bar
What code would help me out so it works correctly I did it once but it seemed to shift my blog to the right, so I must have blown it, could you help me out? Thanks
Hmmm cant seem to write out the code in the comment its ? php wp_list_cats (”); ? >
92. Andrew Charlton | February 6th, 2007 at 9:59 am
You didn’t do anything wrong, the HTML that the function outputs by default is probably different than what you had before. Send me a link to your blog and I’ll look at the HTML and get you the correct function call you need. froman118 @ gmail.com
93. dalton | February 9th, 2007 at 9:06 am
Hey there,
Is there any reason that this plugin wouldn’t work with the ‘dropdown_cats()’ function?
Cheers,
Dalton
94. Andrew Charlton | February 9th, 2007 at 10:15 am
If you are on 2.1 that function has been deprecated and replaced with wp_dropdown_categories(); The documentation hasn’t been added for it yet but I will look at the function this weekend and get you the exact function call you’ll need to get it to work with my plugin.
95. Keon | February 9th, 2007 at 9:42 pm
This man is fantastic! He’s got the only working plug-in compatible with WP 2.1 that can reorder categories AFAIK. Simple to use. Goddamn useful. I’ve nothing but praise for this guy.
Keep up the fabulous work!
96. Andrew Charlton | February 10th, 2007 at 10:50 am
dalton,
The new dropdown function has pretty much the same arguments as the regular one that outputs the list, replace the old function call with the following:
< ?php wp_dropdown_categories('orderby=order'); ?>
That should be all you need to do.
97. Glenn | February 16th, 2007 at 12:27 pm
I believe your latest release (as of 2/16) has a missing bracket somewhere. I get an error on the plugins management page after activating.
98. Andrew Charlton | February 16th, 2007 at 1:23 pm
Not sure what would be going wrong, nobody has ever had a problem like this and I re-installed the plugin right now and it is working fine. Try downloading again and replacing mycategoryorder.php and if it is still giving an error, send me the error so I can try an narrow it down.
99. Marco | February 22nd, 2007 at 9:37 am
Hi
I love this program, but it doesnt save the order in the published view, only in my control panel view.
I can re-order fine and it stays the order I want, but when I look at the published view it displays in the old order it was in origionally.
100. Ben Klinger | February 24th, 2007 at 5:34 am
Hey.
thanks for the plugin. it is just what i was looking for.
i have a problem using it though.
i get:
WordPress database error: [Unknown column 'cat_my_order' in 'order clause']
SELECT cat_ID, cat_name, category_nicename, category_description, category_parent, category_count FROM wp_categories WHERE cat_ID > 0 ORDER BY cat_my_order asc
i am using 2.0.7.
also, is it possible to get it to work with this plugin? that would be amazing!
http://watershedstudio.com/portfolio/software/wp-category-posts.html
thanks.
101. Stefano | March 11th, 2007 at 11:50 am
1. Extract zipped mycategoryorder folder
2. Upload the mycategoryorder folder to /wp-content/plugins/ on your server.
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. Modify sidebar template to use new sort attribute, see below.
**********************************
I use 2.1 version and Tiga template.
1-2-3 ok: in “Plugin management” I can see “My category order”.
4. : In “Manage –> Categories”, I can see: ID Name Description Posts Links Action, but I can not see “Plugin tab”… what’s wrong in me?
Thank’s
102. LL | March 16th, 2007 at 1:37 pm
Nothing for php the_category inside a post? I need it there.
103. Designer Ella | April 2nd, 2007 at 5:13 pm
I need a plugin that orders categories under a post, like in the loop or whatever; on index or single page, not just sidebar. Can you do that?
104. Juris | April 5th, 2007 at 2:25 am
Hi!
This is nice..thanks! Maybe you can help me! Is there any way i can make it no to be seen by other users. I mean…when they log in to my blog as “authors”, in options they can change the order if they wish! I wan’t that to be allowed only to me…
105. ProfessorDino | April 6th, 2007 at 6:54 am
Have you tested your plugins in WordPress MU yet?
106. alex | April 11th, 2007 at 8:43 pm
hi nice site.
107. Kevin Donaldon | May 1st, 2007 at 9:34 am
in response to item 105. We just moved to MU and the most recent version of the plugin (2.1) seems to work fine.
108. Marci | May 11th, 2007 at 6:54 pm
I’ve been using this plugin for a long time, and just upgraded. I never really resolved the problems reported earlier, but still used the cat_my_order field to manually manage my order. I’d really like it to be handled in Admin….so I downloaded the latest, and gave it a shot. Overall it is working but…any idea why I would only be seeing 4 categories and 0 subcategories, when I have probably 50 of each? :)
109. Kris | May 15th, 2007 at 10:34 am
Hi,
when activating the plugin i get the following erreor message in WP 2.0.4
Fatal error: Call to undefined function: wp_enqueue_script() in /debjqgaw/www.de-brand.net/blog/wp-content/plugins/mycategoryorder/mycategoryorder.php on line 20Any idea?
ciao
>
110. David | May 16th, 2007 at 11:38 am
I have a similar problem as the following comment:
#
99. Marco | February 22nd, 2007 at 9:37 am
I can re-order fine and it stays the order I want, but when I look at the published view it displays in the old order it was in origionally.
I’m using 2.1.3
111. TT | May 17th, 2007 at 2:45 pm
It’s not working well with the latest WP 2.2, once the plugin’s been actived, the rich text editor will not be working when writing a blog in the Admin panel.
112. nathan | May 19th, 2007 at 6:28 am
Is there anyway to make this plugin compatible with widgets? I am using widgets (like everyone will be using with wordpress V2.2) and I can’t figure out how to incorporate this with them.
113. Jeroen | May 19th, 2007 at 2:08 pm
I feel almost ashamed, tried every combination I could find and/or think of, but I can’t get this awesome plugin to work.
The page order works fine!
Maybe someone can have a look?
Thanks
http://uitenthuis.doenenlaten.net
114. Jim | May 28th, 2007 at 7:00 pm
I am having trouble getting the post count to display.
My code is:
wp_list_categories(’orderby=order&optioncount=1&hide_empty=1&hierarchical=0&title_li=The Goats’)
Everything else works great.
Thank you
115. tnmwr | June 4th, 2007 at 7:45 am
hi. so glad to find your plugin - however, i’m using wp 2.2 and this is the line that appear in the sidebar (which is widgetized by the way):
should i replace with the code you mention above for 2.1?:
wp_list_categories(’orderby=order&optioncount=1&hierarchical=0&title_li=Categories’);
116. tnmwr | June 4th, 2007 at 9:39 am
hi again. thanks for the response about replacing
with
parse errors though…suggestions
(I’m hoping this will post all my code this time…your system omitted a line of code in the last post fyi)
117. tnmwr | June 4th, 2007 at 9:40 am
hi again. thanks for the response about replacing
with
in the wp-includes/widgets.php file
parse errors though…suggestions
(I’m hoping this will post all my code this time…your system omitted a line of code in the last post fyi)
118. Conrad Slater | June 6th, 2007 at 3:06 pm
My theme uses a drop down to display categories. The sidebar cose looks like this:
“” method=”get”>
”
Can I add or change anything here to make of your plugin as it is ignored (though works fine in the admin)
Thanks
119. Conrad Slater | June 6th, 2007 at 3:10 pm
I’ll try that again
” method=”get”>
If this messes up then just know it’s a ?php dropdown_cats();?
120. schnella | June 9th, 2007 at 10:28 am
Hi,
thank you for your order-by-categorys plugin.
Unfortunately it does not work. We use the WP Template Dialogue Avenue III (Widget-ready) 03.10 (de, en) by Mark Dynét.
unfortunately, the code is:
Kategorien’); ?>
I can now change the list_categories code as written above, but it does not work, because the dynamic_sidebar is overwriting it.
Is there a possibility to use your plug-in?
Thank you and many greetings,
Angela
121. robert | June 14th, 2007 at 12:02 pm
hi all.
122. Deb | June 24th, 2007 at 11:57 am
This plugin does not works for wp 2.2
123. Andrew Charlton | June 24th, 2007 at 1:05 pm
You’ll have to be more specific about the problem you are having. Many others and myself are running the plugin on 2.2. Is the plugin page throwing an error, are your settings not being saved, is the order not displaying correctly in your theme? The last is the most common problem so please check your sidebar template or send me a copy of the file if you don’t feel comfortable making changes to it.
124. Schnella | June 26th, 2007 at 12:58 am
Hallo Andrew,
at this url:
schaun-ma-mal.de/blog
you can find a test blog and under:
http://www.schaun-ma-mal.de/sidebar.txt you can see the sourcecode.
Now I want to change for example the oder of word and Excel.
Thank you and many greetings,
Angela
125. Sven Gaul | June 27th, 2007 at 3:46 pm
In wp-includes/widgets.php you have to replace the call
wp_list_categories($cat_args . ‘&title_li=’);
(line 643) with
wp_list_categories(’orderby=order&optioncount=1&hierarchical=0&title_li=Categories’);
This should work for Wordpress 2.2.1 with widgets! :-)
Thanks for this good plugin!
126. Sven Gaul | June 27th, 2007 at 3:48 pm
sorry. of course without the title “Categories”
Sven
127. schnella | June 29th, 2007 at 4:33 am
Hello Sven,
thank you for your helb, but:
I changed line 609 from
wp_list_categories($cat_args . ‘&title_li=’);
into
Unfortunately, it does not work.
Any ideas, how I could get these *** categories ordered?
Thank you and many greetings,
Angela
128. schnella | June 30th, 2007 at 2:12 am
oups- there was some code missing.
I´ll try again.
ok- the missing code is:
wp_list_categories('orderby=order&optioncount=1&hierarchical=0&title_li=');
So, hoping the code is now allright,
Angela
129. User | July 2nd, 2007 at 3:54 am
Hi, your plugin sounds great, but after I copy it into my plugins folder, it doesn’t show up under the ‘Plugins’ menu so I can’t activate it. Any ideas what is going wrong?
Thanks!
130. Andrew Charlton | July 2nd, 2007 at 11:08 pm
User: The only thing I can think of is it doesn’t have read permissions set, you’ll need to CHMOD it to 744. You can usually do that through your FTP program.
131. Martino | July 5th, 2007 at 5:29 am
Looks like the issue resolved itself. Everything looks great, thanks for the excellent plugin. :)
132. Tony | July 5th, 2007 at 11:55 am
Glad to contribute to such a great plugin! Thanks!
133. Bujar | July 6th, 2007 at 1:22 pm
I cannot plugin
134. Mark | July 8th, 2007 at 3:00 pm
I’m using WP 2.2 and get this error message…
WordPress database error: [Unknown column 'cat_order' in 'order clause']SELECT * FROM wp_categories WHERE cat_ID > 0 ORDER BY cat_order ASC
135. Mark | July 8th, 2007 at 3:04 pm
oops, nevermind. forgot to organize at least one thing before anything. excellent plugin!.
136. PHILIP | July 8th, 2007 at 4:32 pm
I am a newbie and very ignorant of php. My question is whether we can exclude certain categories with this plugin. My situation is that I have a long list of categories. Among categories i have are names of authors of articles. I would like to have a box in the side bar to list all these or some of the authors. I also have categories like politics, sports, business etc. which I want to put in another box.
Eventhough this plugin is great, if it can help us to add boxex of selected categories, it would be perfect.
thank you
Philip
137. Moon | July 10th, 2007 at 1:09 pm
Hello and thx for this very cool plugin i was using category order before and switched to your plugin because drag and drop is so usefull but there were an option on the previous one that i d like to see on yours : the option to let a mother category appears without the sub category untill you click on the mother category link.
Is it possible ?
138. steve | July 12th, 2007 at 9:28 pm
Nice piece of code - very useful
139. phil @ ki-learning | July 13th, 2007 at 6:07 am
HI !
I use the 2.2.1 version with french translation. I am not able to move order of categories with : mycategoryorder-2-2. (the plugin interface is OK).
I put the categories instead of pages in the header.php :
140. suzy | July 13th, 2007 at 3:06 pm
Hi Andrew–
First, thanks for the great plugin! I need a little guidance, my categories and their sub-categories are not displaying in the correct order and some are not showing up at all.
This is how the order should be:
Age
Infant
Toddler
Preschool
5-7
8-11
12 and up
For Moms Only!
Price
$250
Type of Gift
Toys
Imaginative Play
Construction Sets
Crafts & Hobbies
Games & Puzzles
Educational
Electronics
Books & Magazines
Movies & Music
Clothing & Accessories
Furniture & Room Decor
Outdoor & Sporting Goods
Travel & Experiential
Age, Price and Type of Gift are the main categories.
This is the code I have in my sidebar.php:
I’m kind of stuck, so I hope you can help.
thanks so much!
141. suzy | July 13th, 2007 at 3:13 pm
Let me try the sidebar code again:
Hopefully, that will show up!
thanks!
142. Richard | July 14th, 2007 at 9:59 pm
Hi there - I just wanted to say a huge thank you for this plugin. I’ve just installed it on a fresh WordPress 2.2.1 install and it’s working perfectly straight out of the box. An excellent bit of work. Thank you.
143. R | July 15th, 2007 at 3:37 pm
I have wordpress 2.04 and need the category order updated because the current version does not have the up and down arrows, etc. like the newer versions do.
Please provide updated version
144. gia | July 17th, 2007 at 6:49 pm
I seem to be having the same trouble as David (#110) above - everything looks fine in the backend, but when I go to the front page, it displays the categories in alphabetical order. I’m using 2.12. Any thoughts?
145. Chamboultout | July 28th, 2007 at 7:00 am
add wp_list_categories(’orderby=order&optioncount=1&hierarchical=0&title_li=Categories’);
Yes, but where ?
thanks!
146. Clare | July 30th, 2007 at 3:12 am
Pugin looks great, unfortunately I can’t get it to work in the sidebar.
I’m running WP version 2.0.10 with widgets.
No mycategoryorder widget was uploaded with the plugin.
What code do I manually need to enter into the widget please?
Many thanks.
147. Clare | July 31st, 2007 at 12:41 am
Ignore comment #146 - I’ve now got the plugin to work!
Fantastic plugin, just what I’ve been looking for.
Many thanks.
148. Dawn | August 4th, 2007 at 8:10 am
HI - this is a very good plugin however when I select the dropdown option as a widget I get this error message in my sidebar:
Fatal error: Call to undefined function: wp_dropdown_menu() in (path/to/wp-content/plugins/mycategoryorder.php) on line 161
Otherwise it works fine.
149. Dawn | August 4th, 2007 at 8:11 am
Oh and I’m using WP 2.2.1 and a tarski theme.
150. Dawn | August 4th, 2007 at 8:13 am
…. But the problem is still there even if I change the theme to something default.
thanks
151. andy | August 13th, 2007 at 7:09 am
I’m trying to use this plugin on a project but have a problem. All the things in widgets that appear in the sidebar below this widget are coming up bulleted, as though they are in the same list. Is there an open ul or li or something that needs a close or how can I fix this?
Any info would be great.
152. Steve | August 15th, 2007 at 9:03 am
Hi
I’ve used the category order, and was happy with the results but just run into a couple of issues that i hope you can help me with:
the first involved removing the ‘heading’ to the category, which i did by going into mycategory.php and removed line 153 ..$title = empty($options['title']) ? __(’Categories’) : $options['title'];
is this the correct line to remove?
the second issue I’m having is that I’m wanting to remove ‘pages’ (if you go to http://pepperedsprout.com/wordpress/ it’s the red box
have you any ideas how i may do this?
thank you
153. MrNike | August 17th, 2007 at 7:40 am
Great Plugin. Is there any way how i can not show all categories, within this plugin ? Like i got 5 Categories and i only want to show 2 of them.
Greetings,
Markus
154. Steve | August 17th, 2007 at 9:15 am
Hi Markus -
that’s the same problem I needed to solve - I’ve categories and would like to remove one, but keep the same order - if you find out how to do it would really appreciate if you could show me
taaa
155. Steve | August 17th, 2007 at 9:17 am
p.s. i did turn the div display to hidden which did work, but understand it’s not a good thing to do as search engines get suspicious of hidden content?
ta ta
156. MrNike | August 18th, 2007 at 4:05 am
I found a solution for my problem.
Just use this (http://ryowebsite.com/wp-plugins/category-visibility/) plugin in combination with mycatorder.
It will do the job.
Greetings,
Markus
157. Steve | August 22nd, 2007 at 11:10 am
Hi - yes i used that but soon as i removed the heading (’category’) it didn’t work, cheers
158. Steve | August 22nd, 2007 at 11:15 am
Hi Andrew,
yes been using plugins - where do i find the place/file to add &exclude=1
thanks!
159. mnrmn | September 7th, 2007 at 11:25 pm
Thanks for this invaluable plugin. I just want to share my trick:
If you’re using WP2.0.+ and using Automattic’s Sidebar Widgets plugin, you can also fix the widget by hacking widgets.php in the plugins > widgets folder.
just search for wp_list_cats(”sort_column=name”… and change it to wp_list_cats(”sort_column=my_order”…
cheers,
mnrm
160. YuBe | September 11th, 2007 at 6:01 am
IMHO it’s a good idea to add a ‘hide’ option to categories, so wee can remove some items from the sidebar list.
161. hiro | September 11th, 2007 at 8:46 am
Hi all,
I had a problem showing post counts but looks like I solved it.
categories’); ?>
I used this code and now everthing works fine!
162. hiro | September 11th, 2007 at 8:47 am
Hi all,
I had a problem showing post counts but looks like I solved it.
php wp_list_categories(’orderby=order&show_count=1&hierarchical=0&title_li=categories’);
I used this code and now everthing works fine!
163. Robert | September 12th, 2007 at 10:12 pm
I think I would make good use of this plugin, but i cannot seem to get it working correctly. I call my categories “Topics” and use the following code:
164. Arielle | September 17th, 2007 at 3:31 pm
I installed 2.2 of this plugin and activated it. I then went to widgets and replaced Categories with My Category Order. I opened the Manage area and clicked on My Category Order and only my blog categories are showing up! I have many more categories I created (that I use in my blogroll), and those are the ones I want to change the order for. Help!
165. CR | September 17th, 2007 at 10:17 pm
Wordpress Plugin - My Link Order
http://geekyweekly.com/mylinkorder/
166. yoichi | September 24th, 2007 at 6:16 am
Hi,
Thanks for the great plugin.
One question.
Could this widget do the drop down menu? I’m getting an error when I do so.
I’m using wp2.2.1.
Thanks
167. Kemila | September 25th, 2007 at 10:12 pm
PLEASE, PLEASE update this plug-in! We were so happy when it worked. Now it doesn’t since we upgraded our version of Wordpress. We donated $50 to the cause.
Thank you!
168. Bryan | September 26th, 2007 at 5:39 pm
Yes indeed, this is a very helpful plug-in! We’ll be waiting to upgrade our blog specifically for it. Thanks for all your hard work!
169. lazaros | September 28th, 2007 at 11:48 pm
Please update your plugin category and link and if you need any donations we do!!!
170. olci | September 30th, 2007 at 6:41 pm
i am using 2.3 version right now!
but i am giving a little problem
“orderby=order&order=ASC&show_count=1&hierarchical=1order-t.term_order”
at top of the categories list.
i am using with widgets [mandigo theme]
please help.
thanks.
171. user404 | September 30th, 2007 at 8:56 pm
i’m using 2.3 as well and i’m also having the “order-t.term_order” issue where it appears at the top of my category list. how would i go about fixing this problem?
172. user404 | October 1st, 2007 at 12:04 pm
well i’ve tried downloading and installing the plugin again after i received your response. the problem persists and i also get “name-t.namename-t.name” on top of the category table under the category tab.
i can get rid of them by using the original taxonomy that comes with wordpress 2.3. it seems to work fine without your archived taxonomy.php. is it recommended that i use yours? what makes it any different?
173. Andrew Charlton | October 1st, 2007 at 12:27 pm
You’re right I was looking in the wrong place! I had fixed it on my local files but forgot to move the final taxonomy.php into the zip. Try again and sorry about the confusion. I had to modify taxonomy.php to allow the template functions to sort by the order column I add to the database. Normally when you try to sort terms you are limited to count, id, and name, I added an “order” option.
174. Ilia Kantor | October 2nd, 2007 at 4:45 am
Hello, Andrew!
I’m glad the issue with taxonomy is resolved.
There are 2 more issues
1) When I enable plugin, and modify widget, I usually check blog page for changes.
With your plugin it reported that wp_terms has no terms_order column, so I had to add it manually.
Only later I realized that what I *really* had to do was to enter admin first. In this case mycategoryorder seems to make the alter.
That was instructions stuff.
2) When I entered my category order admin, it gave me no subcats. After some debugging
I found that on line 61 taxonomy=’link_category’ should be replaced by taxonomy=’category’ (my WP 2.3 uses ‘category’).
Hope that helps.
Still, I had to add term_order manually
175. Ilia Kantor | October 2nd, 2007 at 4:46 am
ignore last line of previous post :)
176. Andrew Charlton | October 2nd, 2007 at 7:24 am
Thanks for the catch on #2, just realized I never tested sub-categories. I’ve update the zip file.
177. Woland | October 3rd, 2007 at 7:41 am
Hi,
i’ve installed the last version of your plugin on Wordpress 2.3.
I just see the first default category,
(from the standard template) on the drop down menu.
I see the other out of the dropdown menu, so i can’t order their subcategoryes.
Any ideas?
178. Andrew Charlton | October 3rd, 2007 at 7:51 am
A category will only show up in the top dropdown if it has subcategories. Take a screen shot of the Manage -> Categories screen or describe your category structure, I’d have to see that to really know what is going on. Also don’t confuse Post Categories and Blogroll Categories, they were merged in 2.2 but have been broken apart again in 2.3.
179. Woland | October 3rd, 2007 at 8:02 am
yes, i have 4 categories with subcategories. But i see just the first in the dropdown menu.
With previous version of your plugin and wordpress 2.2, it worked fine
(i had 4 all the categories in the dropdown)
The only difference i can see between the category in the dropdown and the other, is that that category is the original one, the default one.
180. Michael | October 5th, 2007 at 11:30 am
I have the problem that Categories are not sorted as I want them to be.
I user WP 2.3 and the latest 2.3 version of the Plugin. I don´t use widegts so I entered
<?php wp_list_categories(’orderby=order&hide_empty=1&title_li=Rubriken’);?>
into my sidebar code. It shows the Cats but unfortunately not in the expected order.
Any ideas?
181. çeviri | October 18th, 2007 at 2:54 am
Hi,
I’ve just upgraded my blog to wp 2.3 and installed your plug-in. It seems working right but it never shows the order I set. Whatever I did, it didn’t work!
Looking forward to your help…
Thanks in advance…
182. çeviri | October 18th, 2007 at 3:02 am
I have just checked whether it is because of the theme I’m using or not. But it is not! It didn’t work with the default theme as well.
Please somebody help me, or I’ll loose my mind :’( :(
183. Tobias | October 23rd, 2007 at 12:27 am
Hi there
great PlugIn …. but there’s a problem:
I don’t want to show the subcategorie on the top-level - just when I click on the parent categorie, the sub-categorie should be shown.
Like:
categ_1 -> user clicked here
sub_1 -> is shown
sub_2 -> is shown
sub_3 -> is shown
categ_2
categ_3
sub_1 -> shouldn’t be visible
sub_2 -> shouldn’t be visible
sub_3 -> shouldn’t be visible
categ_4
By now, ALL sub-categories are visible.
check
-> http://www.heuken.com
What can I do????
184. Danny | October 25th, 2007 at 8:31 am
Hi. I want so desperately to be able to do this… but after installing the two files and going to Manage>My Category Order, I see the drag and drop list, but there is no drop down for selecting the subcategories.
Ack. I’m using Wp 2.3, and I did replace taxonomy.php. Any ideas? I definitely have subcategories in my categories.
Thanks.
185. Sam | October 25th, 2007 at 7:21 pm
This is GREAT STUFF!! It should be listed in the WP Plugin Directory. (Or, if it is, it needs more tags or something because I didn’t find it there).
Anyway, it did everything I wanted when it came to organizing my top-level categories. But, it didn’t work when I clicked “Order Categories” after arranging my subcategories. I’m running WP 2.3
If you can help me get that one little problem fixed, there is definitely a donation coming your way.
186. Sam | October 25th, 2007 at 7:43 pm
Doh! I figured out my own problem. I needed to pass the wp_list_categories function call the following attribute/value pair:
orderby=order
Once I did that, it all worked like a charm. A donation will be coming your way soon!
187. zman | October 29th, 2007 at 8:39 am
wordpress 2.3.1 taxonomy.php
Only one diff than 2.3
When I upgrade wordpress to 2.3.1
Move the same file taxonomy.php to /wp-includes/ ??
Or edit “LEFT JOIN” to “INNER JOIN” ??
Sorry for my broken English.
188. Charm | October 30th, 2007 at 2:01 am
Just activiated ‘My Category Order’ on WP2.3. And this is the error showing on the frontend category portion.
“WordPress database error: [Unknown column 't.term_order' in 'order clause']
SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN (’category’) AND tt.count > 0 ORDER BY t.term_order ASC”
Pls advice.
189. ovidiu | November 5th, 2007 at 7:54 am
hello, I just upgraded your category and page order plugin as I have updated my wp install to 2.3.1 and it seems they no longer work with sidebar modules instead of widgets…
fyi: I have to use a plugin called disable widgets to be able to use sidebar modules (here is the link to sidebar modules plugin: http://nybblelabs.org.uk/projects/sidebar-modules/ )
here is the error I get: Fatal error: Call to undefined function: wp_register_sidebar_widget() in /var/www/web6/web/wordpress/wp-content/plugins/mycategoryorder.php on line 214
it would be great if your plugins would continue working with SBM
190. susana | November 10th, 2007 at 12:33 am
hello ovidiu,
i get the same error you explain, how can i go back to a stable execution of wordpress to install the disable widgets first?
thanks
191. gcs | November 10th, 2007 at 12:50 pm
Hi,
I installed the plugins to several of my blogs after upgrading to 2.3.1. It works fine on one of my them (with only one level of categories) but on the other it didn’t work. Only one parent was shown in the drop down menu instead of two and though I ordered the children, they ended up dispersed through the other categories at random.
I uploaded the same code to all the sidebars and the new taxonomy file to all the wp_include folders so it should not be a problem of incorrect installation.
Any light would be welcome: I really miss the old category order plugin.
Thank you anyway for your work and making this available to us all.
192. ovidiu | November 11th, 2007 at 12:40 am
@susana
you just have to rename the mycategoryorder.php to mycategoryorder.php.txt then go to your wp backend, and it will work as it disables this plugin because it can no longer find the file, then you can go back and rename your file again to mycategoryorder.php and it will appear in the plugins list again but disabled.
BUT be carefulm the disable widgets pluginm does disable widgets and lets you use sidebar modules instead but I still do get the error from above when trying to use this plugin with sidebar-modules…
still waiting for some feedback from the author of this plugins.
193. Claudio | November 12th, 2007 at 6:03 pm
@ gcs
I have exactly the same problem like you. My main categories don’t sort themselves the way I want them to be and then the subcategories show up somewhere randomly between the main categories…
Have you got any idea yet.
By the way, did u use the sentence for the sidebar from the 2.2 version or from an older version. They seem to deliver complete different results.
I appreciate any help, since I’m travelling around the world and haven’t got too much time to try things on the computer.
Thanks in advance
194. Claudio | November 12th, 2007 at 6:16 pm
@ ceviri
I’m having the same problems like you.
Have u found a solution yet?
Thanks
195. MAWSpitau | November 16th, 2007 at 8:35 am
I do have the same problem like ceviri and Claudio. I have installed everything, and it looks like it is working, but it is not!
My WP Version is: “Version 2.3.1 DE-Edition”.
196. Rene | November 16th, 2007 at 3:18 pm
i have the same problem as Charm : “WordPress database error: [Unknown column ‘t.term_order’ in ‘order clause’]
SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN (’category’) AND tt.count > 0 ORDER BY t.term_order ASCâ€
i use WP 2.3.1 .. please check, thank you !
197. naisioxerloro | November 28th, 2007 at 2:12 pm
Hi.
Good design, who make it?
198. alexsbrown | November 30th, 2007 at 8:15 am
I am working on converting my site to WordPress 2.3.1, and this plug-in really helped. Unfortunately the visual editor and other replacement visual editors (TinyMCE Advanced) seem to be disabled now that I installed it.
I see that there was a problem like that with 2.2. Anyone else having the same problem? Anyone have a fix?
199. alexsbrown | November 30th, 2007 at 1:08 pm
Never mind. Figured it out in the post about GZip problems with TinyMCE: http://wordpress.org/support/topic/107146. The problem had nothing to do with My Category Order.
Sorry for the false alarm!
200. jon b | December 4th, 2007 at 7:49 am
Great Pluggin works nicely. Makes you wonder why wordpress out of the box does not do this, it is such a need feature.
201. Matteo Raggi | December 5th, 2007 at 2:24 pm
this don’t give errors, but not work with WP 2.3.1 ITA just from the first level of categories ..
202. mimieux | December 5th, 2007 at 3:01 pm
i love the plugin- just one qeustion.
how can i exclude one category from the list? i have been using category excluder to maintain articles not ready to publish in a category all its own. i would love to use this plugin but i can’t seem to get it to ignore that particular category.
any suggestions of how to exclude catID=18 for example?
203. mimieux | December 5th, 2007 at 3:13 pm
i figured it out!
(’orderby=order&optioncount=1&exclude=14,16&hierarchical=0&title_li=Categories’)
cheers!
204. mimieux | December 5th, 2007 at 3:26 pm
no i didn’t- now i can exclude those categories but the list won’t sort!
hmmmm
205. Ellie | December 9th, 2007 at 1:08 am
Like the plugin, but could you please help me figure out why it won’t let me reorder one set of subcategories? I have two (Recipes & Other), and only ‘Other’ appears in the drop down list!
206. Richard Lee | December 24th, 2007 at 7:18 pm
My set-up:
WP 2.3.1
Theme: Tranquility White 1.0
Has several problems related to theme. Fixed by using: wp_list_cats(’orderby=order&optioncount=1&hierarchical=0′);
Changing categories to cats fixed all the major stuff(functionality). Removing the title fixed the odd look of things.
Added this as it may help others.
-R
207. Bailey | December 25th, 2007 at 10:41 am
same problem as others above on WP 2.3.1– “WordPress database error: [Unknown column ‘t.term_order’ in ‘order clause’]
SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN (’category’) AND tt.count > 0 ORDER BY t.term_order ASCâ€
Can anyone help with this?
208. Bill Stoddard | December 31st, 2007 at 6:20 pm
I just updated to WordPress 2.3.2, and My Category Order does not seem to work anymore. Has anyone else experienced this problem? This is a great plugin so I hope it can be made to work. Thanks!
209. Patrick Wolf | January 2nd, 2008 at 4:58 pm
Hi,
great plugin! Was exactly what I was looking for.
Though I had some problems with WP 2.3.2 (fresh install) and subcategories. It didn’t show the select list with all the parent categories.
The problem seems to be that the SQL statement in line 58 (mycategoryorder.php) restricts to “link_category” instead of just “category”. It also does a join to wp_term_relationships which would only show categories where something is assigned to.
I changed the code beginning from line 58
$results=$wpdb->get_results("SELECT DISTINCT t.term_id, name FROM $wpdb->term_taxonomy tt inner join $wpdb->term_relationships tr on tt.term_taxonomy_id = tr.term_taxonomy_id inner join $wpdb->terms t on t.term_id = tt.term_id where taxonomy = 'link_category' and tt.parent = $parentID ORDER BY term_order ASC");
foreach($results as $row)
{
$catCount=$wpdb->get_row("SELECT count(*) as catCount FROM $wpdb->term_taxonomy WHERE taxonomy = 'category' and parent = $row->term_id ", ARRAY_N);
if($catCount[0] > 0)
$subCatStr = $subCatStr.”<option value=’$row->term_id’>$row->name</option>”;
}
to
$results=$wpdb->get_results("SELECT t.term_id, t.name FROM $wpdb->term_taxonomy tt, $wpdb->terms t, $wpdb->term_taxonomy tt2 WHERE tt.parent = $parentID AND tt.taxonomy = 'category' AND t.term_id = tt.term_id AND tt2.parent = tt.term_id GROUP BY t.term_id, t.name HAVING COUNT(*) > 1 ORDER BY t.term_order ASC");
foreach($results as $row)
{
$subCatStr = $subCatStr."<option value='$row->term_id'>$row->name</option>";
}
That works at least for me. Another advantage is, that it does it with one SQL statement instead of checking for childs each time with a separate SQL statement.
BTW, the instructions.txt file for the 2.3.x version should contain a hint that the taxonomy.php has to be copied to /wp-includes/
Greetings
Patrick
210. Robin | January 3rd, 2008 at 8:19 am
Well I feel like an idiot after reading all these posts. I love the idea, have the plug in installed and went to change the script on my adclerum template. I chose left.php and tried 3 different versions of the script-and it does nothing. The plug in acts like it works under the blogroll link but I must be doing something super wrong. I am still using wp 2.3.1 because I used fantastico to install it and they haven’t updated.
211. Patrick Wolf | January 3rd, 2008 at 12:38 pm
Have you copied the taxonomy.php into /wp-includes/ and have you used the “My Category Order” widget instead of the Wordpress default one?
Patrick
212. Bill Stoddard | January 6th, 2008 at 11:19 am
The problem I reported in post 208 was because I forgot to put the file taxonomy.php in the wp-content folder after updating to WordPress 2.3.2.
213. scott | January 7th, 2008 at 9:01 am
Hello,
I have your plugin activated, but don’t understand how to drop the widget into the sidebar. Everything else I understand. Using WP V 2.3.1
I am looking forward to using this. Thanks for your help!
214. elleci | January 10th, 2008 at 7:04 am
Hello everybody, for the subcategory stuff to work you need to change line 58 from:
$results=$wpdb->get_results(”SELECT DISTINCT t.term_id, name FROM $wpdb->term_taxonomy tt inner join $wpdb->term_relationships tr on tt.term_taxonomy_id = tr.term_taxonomy_id inner join $wpdb->terms t on t.term_id = tt.term_id where taxonomy = ‘link_category’ and tt.parent = $parentID ORDER BY term_order ASC”);
to:
$results=$wpdb->get_results(”SELECT DISTINCT t.term_id, name FROM $wpdb->term_taxonomy tt inner join $wpdb->term_relationships tr on tt.term_taxonomy_id = tr.object_id inner join $wpdb->terms t on t.term_id = tt.term_id where taxonomy = ‘category’ and tt.parent = $parentID ORDER BY term_order ASC”);
otherwise no dropdown will be shown
215. elleci | January 10th, 2008 at 8:04 am
Sorry just ignore my previous post, is wrong the following is the right snippet for the line 58:
$results=$wpdb->get_results(”SELECT DISTINCT t.term_id, name FROM $wpdb->term_taxonomy tt
inner join $wpdb->term_relationships tr on tt.term_taxonomy_id = tr.term_taxonomy_idINNER JOIN $wpdb->terms t ON t.term_id = tt.term_id WHERE taxonomy = ‘category’ AND tt.parent = $parentID AND exists(SELECT * FROM $wpdb->term_taxonomy tt1 WHERE tt1.parent=tt.term_id) ORDER BY term_order ASC”);removing the striked part
216. Antti | January 14th, 2008 at 6:30 pm
Thank you!
217. Supporter1984 | January 21st, 2008 at 4:52 pm
I did every thing but it just doesnt work. I have wordpress 2.3.2.
218. Dennis Wurster | January 22nd, 2008 at 2:10 pm
Trying out MyCategoryOrder with a blog for a client, version 2.3.2 of WP. Roughly 25 categories, one of which has 3 sub-categories. The directions say to ‘Choose a category from the drop down to order subcategories…’, but there’s no dropdown to be found.
How should I proceed?
219. Daniel | January 23rd, 2008 at 2:01 am
the same with me, no drop down to order subcategories.
220. Daniel | January 23rd, 2008 at 2:36 am
I install the mycategoryorder2-3-2 in my WP 2.3.2 and now doesn’t show any category and subcategories, only the “all” category with the number of post.
221. Daniel | January 23rd, 2008 at 3:30 am
i must to deactivate the Exclude and Include options, and now works perfectly
222. Krystal | January 23rd, 2008 at 5:24 pm
Hi - I like the idea but I can’t get it to work - it is appearing in my widgets section but I get this error:
WordPress database error: [Unknown column 'cat_order' in 'order clause']
SELECT * FROM wp_categories WHERE cat_ID > 0 AND cat_ID 2 AND category_count > 0 ORDER BY cat_order ASC
My version is 2.2.2 - thanks in advance
223. Erez | January 29th, 2008 at 2:00 pm
i’ve installed it like you said and activated the widget, but when i’m trying to change category order from the ‘manage’ panel nothing happen!
here is my code :
Any idea?
224. Torsten | January 30th, 2008 at 10:00 am
Hello,
doesn’t work for me, too.
I use WP 2.3.2.
1. I changed line 58 as described above but it in –>manage–>My Categroy Order there is still no possibility to change the order of the subcats
2. I can change the order of the main cats in –>manage–>My Categroy Order any way I like but this does not have any effect on the order of this categories in my sidebar
Would be great if you could help me!
Thanks,
Torsten
225. Jonathan | January 30th, 2008 at 9:12 pm
Hello. I installed the plugin according to the dirrections. I am sorry if I am just stupid but when I put the widgit into the sidebar is says “No Categories”.
Any ideas? Thanks!
226. Tobias | January 31st, 2008 at 2:49 pm
sorry - it couldn’t be installed by the plugin manager - it’s not working
Greatings
Tobias
227. zen0 | February 9th, 2008 at 8:17 am
I think isnt working at all with 2.3.3 release :(
228. Clark | February 10th, 2008 at 8:26 pm
I have uploaded the fiels as described but the plugin does not show up in the plugin list to be activated.
229. Clark | February 11th, 2008 at 5:37 pm
Andrew was able to help me get this going on my WP 2.3.3. I had to change the permissions from whatever they were that prevented them from showing up in my plugin list to 644. Then when it showed up the interface and the db didn’t want to talk, so Andrew had me manually add the order in the wp_terms table. It turns out that if you are not using the widgets but if you have the db table you don’t even need the plugin installed.
UPDATE wp_terms SET term_order = 1 where slug=’my_first_category_slug’;
Now it works!
Thanks Andrew!!
230. Sally | February 22nd, 2008 at 11:39 pm
Just What the doctor ordered.
Thank You!!
231. Abir | February 23rd, 2008 at 12:43 pm
great help. thanks a lot
232. raffi | February 24th, 2008 at 5:38 am
is there a update panned to fix this and you can use the admin tool again?
if i got clark right, you have to set the order directly in the db…
233. Hannes | February 24th, 2008 at 11:47 am
Thank you a lot for this widget. I´ve been searching for hours…
234. Brad | February 27th, 2008 at 3:56 pm
I’m having the same problem as Clark (#228), but I don’t understand the adjustment that needs to be made which is supposedly described in Clark’s other comment (#229).
Could someone send me some instructions on how to fix this that an above average novice could understand?
Thanks!
235. Andy | February 29th, 2008 at 1:39 pm
Can someone translate this:
“UPDATE wp_terms SET term_order = 1 where slug=’my_first_category_slug’;
Now it works!
Thanks Andrew!!”
I’m still struggling to make it work
236. Andrew Biss | March 2nd, 2008 at 12:17 pm
Hi,
I installed the plugin with WordPress 2.3.3. To get the formatting of the indented lists in the category widgets to work correctly I had to add an extra definition to my CSS.
The issue is that in my template the nested list of categories had an ID of “#categories-1″. The CSS was styling this for elements “ul” and “ul li”, adding icons and padding.
The My Category Order widget generates the HTML with an ID of “#mycategoryorder”. This meant that it was not matching the CSS styles.
To solve this problem I just replicated the existing CSS styles for the new ID.
With that change the nested category lists are in the right sequence and nested OK.
Andrew.
Old:
237. Anne | March 2nd, 2008 at 2:30 pm
Hi, I have tried to install your plugin. But when I go to “manage” -”my Category Order” I don´t get a dropdown. any explanation?
Thanks
238. Mike | March 2nd, 2008 at 2:34 pm
Just installed this plugin on 2.3.3. Works great … except for subcategories. Everything on the admin side works correctly; it just doesn’t sort the subcats when viewing on the frontend. I’ve read through this entire comment history. The line 58 change didn’t seem to apply anymore as of today. I’m using widgets so I don’t have to add the “orderby” statement. Is there anything else that I’m missing?
239. repa | March 3rd, 2008 at 12:20 pm
hi,
i installed it on 2.3.3 works fine in the admin interface, added widget, but only one category is shown in the frontend.
i’ve 5 main categories and several sub categories. just the last categorie is shown in the widget.
any hint?
240. Andrew Charlton | March 3rd, 2008 at 1:31 pm
And you were using the built in category widget before? Leave a comment with your real email so I can contact you.
241. Dennis Wurster | March 3rd, 2008 at 1:40 pm
So, for those of us running 2.3.3, using widgets, and who use sub-categories….
What’s the procedure to getting this plugin to run smoothly?
242. Ricci Forli | March 4th, 2008 at 8:01 am
I am using wp 2.3.3 but categories not get the right order, first when I was using the 2.3.0 was all right, there is some problem about new version to solve?
243. Robert Sigrest | March 6th, 2008 at 12:56 pm
Great plugin! Works right out of the box! Thanks!
244. James Doyle | March 7th, 2008 at 12:57 pm
Hello - I have tried my best to make this work correctly, but I am still having issues getting the categories in the correct order.
As instructed, I drop the “My Category Order” widget into the sidebar, then place the categories to my liking via the My Category Order Wordpress tab. After all that, however, the categories are still in alphabetical order.
I have two places for categories on my site, above in the header and obviously in the sidebar widget. Interestingly, the header order is the typical A to Z, while the sidebar order is Z to A.
Any suggestions?? Thanks in advance for your assistance!
245. Jeff Houdyschell | March 8th, 2008 at 10:08 am
I got it to work once with 2.3.3 but then it will not reorder the categories again.
246. Hannes | March 11th, 2008 at 7:10 am
Hello,
thank’s first for the great plugin. I have a Problem with the widget. I ordered the categories in the backend and replaced the standard category widget with the My category order widget. But in the frontend I can only see the first category. I’ve one blog wich is member in 15 categories. But only the first category is shown. What did I wrong?
Greetings Hannes
247. Katharina | March 12th, 2008 at 3:52 am
Hi,
I’ve the same problem as Hannes. I only can see the “standard” category.
We us WPMU. Maybe there is the “bug”??
Would be great if there would be a solution.
Thanks a lot!
248. figu | March 13th, 2008 at 4:31 am
Same thing here…I can play with the category order in the back end but they don’t get re arranged on the site. Thank you for any help you can provide.
249. figu | March 13th, 2008 at 4:35 am
Neverming…ignore my previsous post. I found the fix on this page. Update 2/09/2008: Works with 2.3.3, just copy taxonomy.php again.
Thanks for a great plug in.
Figu
250. Tiger Beaudoin | March 13th, 2008 at 6:16 am
Have used your plugin on other blogs with success, and am now receiving the following error message upon setup of two new blogs:
WordPress database error: [Unknown column 't.term_order' in 'order clause']
SELECT t.*, tt.* FROM wp_gcterms AS t INNER JOIN wp_gcterm_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN (’category’) ORDER BY t.term_order ASC
* No categories
Owe ya a beer when we solve :-)
251. Rebecca | March 19th, 2008 at 4:06 am
What does it mean to copy taxonomy.php again? have taxonomy.php twice in the wp-includes folder?? I am using 2.3.3 and can’t seem to get it to work. I see it in the admin, but not in the frontend.Thanks so much for your help.
252. phil | March 19th, 2008 at 7:28 pm
Am using WP 2.3.3 w/o widgets. My Category Plugin installs correctly, but only organizes by alpha order. How do I get the categories to be in the order I place them?
Thanks
253. WordPress 2.3 M to P comp&hellip | March 20th, 2008 at 6:36 am
[...] My Category Order (http://www.geekyweekly.com/mycategoryorder) 2.3 [...]
254. Doud | March 20th, 2008 at 10:24 pm
For the people who have some problems juste open your sidebar.php find the line : and add this line between the brackets : ‘orderby=order&optioncount=0&hierarchical=0&title_li=Categories’ so the result is : <?php wp_list_cats(’orderby=order&optioncount=0&hierarchical=0&title_li=Categories’); ?>
255. Doud | March 20th, 2008 at 10:26 pm
For the people who have some problems juste open your sidebar.php find the line :
Add this line between the brackets : ‘orderby=order&optioncount=0&hierarchical=0&title_li=Categories’
So the result is :
256.<