Wordpress Plugin – My Link Order

Gives you manual control over the order of your Wordpress link categories and links by letting you set an arbitrary order. Includes drag and drop ordering and a replacement Widget.

 Buy me a beer.

Download My Link Order:

Updates:

  • Update 3/19/2008: With 2.5 coming up, 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 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 (link order is preserved).
  • 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. I'm also dropping support for WP1.5, if you really really need it just ask, but seriously if you are on 1.5 it is about time to upgrade.
  • 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/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: Published WP 2.1 version of plugin. Eliminates need to modify core files but uses new WP template function. Also eliminated up/down arrow images, now uses plain buttons to avoid problems with image paths. See updated instructions above.
  • Released January 2006 for WP 1.5 and soon after 2.0, many updates followed 2.3, 2.2, and 2.

Installation Instructions

  1. Unzip packed files
  2. Move mylinkorder.php to /wp-content/plugins/
  3. 2.3 only: move taxonomy.php to /wp-includes/
  4. Activate the "My Link Order" plugin on the Plugins menu
  5. Go to the "My Link Order" tab under Blogroll and specify your desired order for both link categories and links in each category.
  6. WIDGETS: Just drop the "My Link Order" widget that gets installed with the plugin and that's it!
  7. Modify sidebar template to use correct function (additional parameters seperated by ampersands):
    wp_list_bookmarks('orderby=order&category_orderby=order');

If you have a problem with it not ordering, make sure you have a plain "&" and not "& amp;" between the parameters which could happen if you copy straight out of the browser. Also make sure quotes are plain straight ones, some people have had problems when copying and pasting code out of the browser and PHP chokes on the bad quote character.

Thanks for checking out my first Wordpress plugin, My Link Order. I wrote this because Wordpress is sorely missing the ability to manually set the order link categories and links themselves will appear in. Wordpress provides seven options for ordering just links (ordering categories is mysteriously absent) and they all seem to tip toe around the idea of actually letting the user explicitly set the order they want. 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.

467 Responses to “Wordpress Plugin – My Link Order”

  1. Can you tell me if your plugin will allow me to control the order of link output in my theme editor sidebar section? Currently I have over thirty template files on my customised theme, and they don’t render in alphabetical order in the theme editor page, which is a nightmare when you’re trying to locate a particular file.

    I had asked the WordPress forum about this, but I did not get a reply.

  2. My plugin will let you order your link categories and links manually (instead of the various methods like by id, by name, etc built into Wordpress), giving you more control over the order they appear on your front page.

    You are looking for something a little different it seems (just sorting the files by name on the theme editor page), but it is definetly possible to do. I’ll look at the source code and see what it will take to do. Which version of Wordpress are you using?

  3. Yeah, my links are in the sidebar too…what can we do about that? I’m not afraid to manually edit the code, but I don’t know what to edit! Great idea though, man, I’ve been looking for something like this for a long time…as important as page real estate is these days….

  4. I am having a problem when clicking on the “My Link Order” tab:

    WordPress database error: [Table 'thetais_wordpress.wp_linkcategories' doesn't exist]
    ALTER TABLE `wp_linkcategories` ADD `my_cat_order` INT( 4 ) NOT NULL DEFAULT ‘0′

    WordPress database error: [Table 'thetais_wordpress.wp_links' doesn't exist]
    ALTER TABLE `wp_links` ADD `my_link_order` INT( 4 ) NOT NULL DEFAULT ‘0′

    WordPress database error: [Unknown column 'my_cat_order' in 'order clause']
    SELECT * FROM ibc_linkcategories ORDER BY my_cat_order ASC

    Any ideas?
    Thanks for your time.

  5. This plugin should have been implemented by WP by default, but luckily you can help us poor users.

    I have encountered an error though, when displaying the sidebar::

    WordPress database error: [Unknown column 'my_link_order' in 'order clause']
    SELECT link_url, link_name, link_image, link_target, link_description, link_rating, link_rel , CHAR_LENGTH(link_name) AS length , IF (DATE_ADD(link_updated, INTERVAL 120 MINUTE) >= NOW(), 1,0) as recently_updated FROM ibc_links WHERE link_visible = ‘Y’ AND link_category = 6 ORDER BY my_link_order ASC

    Hope you can help me.

  6. Dunno why… but unfortunately it doesn’t work for me in WP 2.0.1. :(

  7. New version is up for 2.0.1, let me know if it resolves your issue.

  8. Don’t know what the problem is, everything went well with the installation, but the categories don’t update (reorder). Tried deleting cache, etc to see if it was my computer, but no go. Any ideas?

  9. I have had the same problem as Joan – everything installed lovely, but after setting the links in the order I wanted them, the links in the sidebar didn’t change their order.

  10. I got some database errors in my link section when i set this up — folllowed every step verbatim.

  11. Hi – it seemed to set up ok for 2.0.1, but I think I may have gotten the wrong impression of what it does. It reorders “link categories”? This is different from the section called “Categories” right? I want to reorder my different categories and can’t seem to figure out how – under “link categories” all I have is “blogroll”
    Frustrating.

  12. I’m using wp_list_cats() instead of wp_get_links. It would be awesome if the plug-in could handle that as well.

  13. Oh, it does. Awesome.

  14. Great job with this plugin. Just what I was looking for.

  15. HI. The plugin is great, it does exactly what is expected. Thanks!

    I did have to remove some code from your verison of links.php though as the line near 552 was inserting my link categories in a with a cat-ID and i twas messing up my layout. I simply removed the additinonal and now it works great.

    Thank you.

  16. Hey it works great!! Thanks buddy.

  17. Works great for me too in 2.0.1. Thanks for a great plugin!

  18. “Don’t know what the problem is, everything went well with the installation, but the categories don’t update (reorder). Tried deleting cache, etc to see if it was my computer, but no go. Any ideas?”

    “I have had the same problem as Joan – everything installed lovely, but after setting the links in the order I wanted them, the links in the sidebar didn’t change their order.”

    I have the same problem as the two users quoted above. Followed all the instructions, well at least the ones I understood.

    “Set Category Sort Order dropdown to “Manual” on categories you wish have links manually ordered”

    In 2.0.1, there is no “Manual” in the “Sort Order” drop down box.

    Thanks for any help.

  19. Here’s what my links section looks like…

    get_results(”SELECT cat_id, cat_name FROM $wpdb->linkcategories”);
    foreach ($link_cats as $link_cat) {
    ?>
    cat_id; ?>”> cat_name; ?>
    cat_id); ?>

    Which part do I replace with get_links_list()? I tried replacing wp_get_links() with get_links_list(). While that worked with the order, it also lists all the categories and links in each category. That is, say I have two categories. On called “Blogroll” and one called “Random”. Blogroll has three links, “Blogroll Link 1″, “Blogroll Link 2″, and “Blogroll Link 3″. Random has three links as well, “Random Link 1″, “Random Link 2″, and “Random Link 3″.

    So the way the blog would look with my changes is…

    Links:
    Blogroll
    Blogroll
    Blogroll Link 1
    Blogroll Link 2
    Blogroll Link 3

    Random
    Random Link 1
    Random Link 2
    Random Link 3

    Random
    Blogroll
    Blogroll Link 1
    Blogroll Link 2
    Blogroll Link 3

    Random
    Random Link 1
    Random Link 2
    Random Link 3

    So what am I doing wrong?

    Thanks.

  20. This looks like a great plugin and I’d really like to install it. I am just worriied about the need to alter core files. What happens when it comes time to upgrade WP? Will I need to remember that I altered those files?

    I’m a wordpress newbie so sorry if the answer to this is obvious. Thanks!

  21. Jesse,

    You’ll want to replace that entire block in your template with the single line, get_links_list(); That will loop through the categories for you in the order you have specified. There are a number of functions that ouput the links, but as far as I can tell this is the only one that makes sense to use in the context of my plugin.

    Andrew

  22. Rena,

    When it comes time to upgrade, the core files I alter in my plugin will be overwritten which essentially disables the plugin. Whenever there is a WP upgrade I will publish a new version of my plugin and you’ll need to install it again. The files I alter don’t seem to have changed much, if any, in the past three releases, but I have not taken the time to do compares and see if they are indeed different. I’ll probably do it the next time to avoid duplicating my work if I have to. Also, if you uninstall or upgrade the plugin, your orders will be saved so you don’t have to redo them.

    So the answer to your question is, you don’t need to remember which files you altered, just that you have to re-install my plugin when you update WP.

  23. One more question. As I stated in a previous comment, the instructions state that you have to a category’s “Sort Order” to “manual” in order to get the links in that category to sort the way you’d like using this plugin. However, I don’t see a “manual” option in the “Sort Order” drop down. All I see are “Name”, “ID”, “URL”, “Rating”, “Updated”, “Random”, and “Name Length”.

  24. Double check you copied over link-categories.php to the wp-admin folder. The only reason the option wouldn’t be showing up is if that file wasn’t updated.

  25. Yeah, that was the problem. Thanks for the help!

  26. I tried to installl in WP 2.0.2. I follow the instructions but I can’t see it at plugins menu.
    Thanks for any help.

  27. New version to match 2.0.2 is up, no changes were needed so just changed the file name to avoid any confusion.

    If you have any problems with the upgrade to 2.0.2 check the permissions on the mylinkorder plugin directory. Mine got reset when I copied the new WP files over and lost its read permission. Everything worked, but the up and down images used for ordering were gone. A chmod 755 fixed that right up.

  28. Installed the plugin on WP 2.02 this afternoon. Works like a charm. Thanks for the plugin!

  29. I just wanted to post a pointer to folks who had what seemed to be a clean install, but are finding no results of success on their links pages.

    In my case, it turned out that my FTP program hadn’t actually overwritten the two core WP files, even though it acted as though it had. I deleted the two files from the server entirely, uploaded the plugin’s version of those two, and all was well.

    Sweet plugin, BTW! Thanks.

    It would be great if you could hook up with the WP developers and find a way to stop involving the core WP files. Can they not add hooks that would let you plug in entirely? This is a long-overdue functionality…I would think they’d be into helping you integrate it more smoothly. Then you wouldn’t have to keep issuing new versions every time they do. (And we all wouldn’t have to re-install each time.)

    Either way…great plugin.

  30. Looked high and low for this function. Installed without a hitch on WP 1.5. Thank you!!

  31. Wish I could get this right but for some reason, despite repeated deleting and re-adding of the link-catagories.php file, I cannot get manual to show up in the drop down. Checked the permissions on the plugin folder, everything. *taps head against screen* lol

  32. Got it! In the instructions, I was confused because I was trying to find the Manual in the landing page for Links. When I went to Edit the catagory, the Manual selection was in there and upon setting it, everything was fine.

    Thanks for this great improvement!

  33. Are you going to (or is there a plug-in that allows this already) make a plug-in that gives this same type of control over the order of the pages section of WP?

  34. I’ve had that request before and have just been really busy for the past month or so. I’ve got spring break coming up and I’ll do it then, so check back in 2 weeks.

  35. Great – Thank You!

    Quick question though….

    The plug-in works great for the categories that I create but seems to ignore the cat’s that WP automatically generates (IE Links, Categories and Archives sections).

    Did I do somehting wrong in the installation or does the current plug-in ignore those? They don’t show up in the list to be moved around.

  36. Nope, you didn’t do anything wrong. Under the hood, WP displays each of those things separately so you have to think of each of them as their own contained block. It would be possible to get them to work with my plugin, but not without further modification to the core files, database, and templates.

    I am working on bringing up these issues with the WP developers because something needs to be done from the top, not by individual users.

  37. Wow, thanks, this works like a charm!

  38. Hey, great job on the plugin, but i have a problem. I just updated my wordpress files to the newest version, and i keep getting this SQL error, when i sort the categories by “manual”

    WordPress database error: [Unknown column 'link_manual' in 'order clause']
    SELECT link_url, link_name, link_image, link_target, link_description, link_rating, link_rel , IF (DATE_ADD(link_updated, INTERVAL 120 MINUTE) >= NOW(), 1,0) as recently_updated , UNIX_TIMESTAMP(link_updated) AS link_updated_f FROM wp_links WHERE link_visible = ‘Y’ AND link_category = 1 ORDER BY link_manual ASC

    Why would this start happening only after the update? Any suggestions?

  39. What a let down! I thought it would help me reorganise my WP Categories! :(

    Ah well, good on you for catering to user needs anyway. I’m sure I’ll end up using this plugin at some point. :)

  40. nik! My Category Order is in the works just give me a little more time.

  41. Hi it doesn’t seem to work with mine. I see it but I can reorder links even though it appears as though I should be able to.
    What do I have to do to my theme to fix that.

  42. Just writing to say thanks. Worked like a charm and I am a virtual idiot when it comes to rummaging around under the hood of WP. Agree with earlier commenters on the virtue of being able to reassign the seemingly unalterable “pages”; “archives”; “categories”; “meta” categories, but will happily leave that for another day.

  43. Wonderfull!!! Very practical!

  44. Thanks so much! This makes my blogrolling life so much easier!

  45. I know it’s incredibly early to be asking this, but does this plugin work with v. 2.0.3?

  46. Would it be possible to edit the installation instructions (for us idiots, it just took me FOREVER to figure it out and only then by reading all the comments) to mention that you will have to edit EACH CATEGORY’s settings in the Links menu to manual? For those of us just starting to use WP (particularly when we’ve moved from other less spiffy blogware) it can be a bit confusing.

    Hell, I’d rewrite your instructions for you if you wanted.

  47. Ang,

    Thanks for your feedback on the instructions. I will get that added in there and try to make it a little clearer overall. I enjoy getting feedback from those who use my plugin, I just wish more people would comment (49 comments with almost 2000 downloads) about their experience.

  48. You know what would be brilliant? Telling people to not use your code if they have any themes istalled other than the classic or the default.

    You know what would be almost brilliant? Telling people how to fix their worpress install AFTER your code has rendered it usuless.

    You know what is completely stupid? NOT doing one oif the above.

    Thanks for your crappy instructions – ridiculous amount of grief this has caused me.

  49. RoQ,

    My plugin uses the standard built in WP functions to display the links. I can’t be responsible for any theme that deviates from this and uses its own. If you bothered to take a look at the code I had to work with, it was very inflexible and it doesn’t get much better than this.

    I would say 80% of people that bothered to give me feedback had absolutely no problem with their installation. Others who presented their problems to me had complete support and every person you see in the comments that had a problem was contacted by me personally and had their problem resolved through e-mail. I will be happy to post all of those e-mail threads or forward them to you if you want to take back you statement that I don’t help people with their installs.

    So instead of doing something reasonable like presenting your problem and asking for help you took the easy, childish way out.

    I’m coming up on 2000 downloads of my plugin and the number of problems people have reported is actually very small. I’m sorry things didn’t work out and good luck finding another way to manually order your links.

  50. Roq: You know what would be stuipd? Using free code, breaking your (customized) wordpress blog and then complaining to the author for not warning that you’d break your blog!

  51. When I saw your comment above — “My Category Order is in the works!” — I realized that I installed this plugin under a complete misunderstanding — I though it would help me change the order of the categories themselves, not the links within categories. Just wanted to say that I do hope you find time to make that plugin — it is sorely needed!

    But thanks for your work.

  52. Checked compatibility with WP 2.0.3, just use the 2.0.2 version. It’s funny that the links and link categories pages haven’t been touched by the developers in about 6 months.

    Checkout what’s going on in trunk and you’ll see things much much different.

  53. It seen no body have the anwer for this problem

    WordPress database error: [Unknown column 'link_manual' in 'order clause']
    SELECT link_url, link_name, link_image, link_target, link_description, link_rating, link_rel , IF (DATE_ADD(link_updated, INTERVAL 120 MINUTE) >= NOW(), 1,0) as recently_updated FROM wp_links WHERE link_visible = ‘Y’ AND link_category = 8 ORDER BY link_manual ASC

    and i seen some people having this problem
    i upgrade to wordpress 2.0.3 and puff the problem came in

    any one with a real Anwer BTW Great Plugin…

  54. When you upgraded core files I had to modify were overwritten. You’ll need to copy link-categories.php to /wp-admin/ and links.php to /wp-includes/ again. This is one of the downsides to my plugin but sadly it is necessary to get this kind of functionality from WP.

  55. Hi,
    It’s a great plugin!

    My link categories are now sorted manually, but my links are not. But even I sorted my links manually as well, the are still completely unsorted.
    Do you have any idea to solve it?

  56. For each link category you have to go in and change the “Sort Order”. Go to the Links -> Links Categories admin page, and click edit on a category, there will be a dropdown for sorting methods, choose manual. Links in that category will now display in the order you set in the plugin. Hope that helps.

  57. Listen everyone!
    This is what you have to do to get rid of that database error:

    WordPress database error: [Unknown column ‘link_manual’ in ‘order clause’]
    SELECT link_url, link_name, link_image, link_target, link_description, link_rating, link_rel , IF (DATE_ADD(link_updated, INTERVAL 120 MINUTE) >= NOW(), 1,0) as recently_updated FROM wp_links WHERE link_visible = ‘Y’ AND link_category = 8 ORDER BY link_manual ASC

    .. or something simillar
    Just go to the admin section ‘Links->My link order’ and set a link list order..any other than the one you have now. Save and… it works.
    Cheers

  58. Hi Andrew,

    Just a small note – your plugin still says version 1.0 on my WP Plugins page, even though it’s MyLinkOrder 2.02 that I have installed. Just a tiny oversight I assume, but I figured you’d want to know. I actually came back here and re-dowloaded 2.02 and was in the process of re-installing it when I realized that’s what I already had installed. :-\ No big whoop though. It’s an easy install. :-)

    BTW, RoQ (@ comment #51) was being a jerk. Kudos for being so courteous in your reply to him.

  59. I am having the same problem as above

    WordPress database error: [Unknown column ‘link_manual’ in ‘order clause’]
    SELECT link_url, link_name, link_image, link_target, link_description, link_rating, link_rel , IF (DATE_ADD(link_updated, INTERVAL 120 MINUTE) >= NOW(), 1,0) as recently_updated FROM wp_links WHERE link_visible = ‘Y’ AND link_category = 8 ORDER BY link_manual ASC

    I’ve tried everything that was suggested in the comments above,
    I am running wp2.03 and downloaded the latest plugin

    thanks

  60. Hello all,

    I just installed Mylinkorder, unfortunately it doesn’t work. Oviously the plugin tries to read something from the wrong database. I receive the error message “Table ‘db1051044-cpg.wp_linkcategories’ doesn’t exist”. db1051044-cpg is my Coppermine database.

    How can I fix that?

    Regards,
    Dominik

  61. I’m also getting the same database error as so many others have reported. This only happened when I upgraded WP to 2.0.3, so apparently there is some sort of compatibility issue involved here.

    I did try to reset the link order in My Link Order, as suggested above, but this had no effect.

    Is there any chance that a fix will be forthcoming? Your plugin is great, and we’d really like to be able to keep using it.

  62. As a follow-up, I just deleted link-categories.php and links.php from the latest download, and replaced them with the files from the 2.0.1 download. That corrected the problem immediately. I’m wondering if possibly one of those files has something out of place in the latest download?

  63. When you upgrade to a new WP version you have to re-install those two files since they get overwritten during the upgrade process. It isn’t the ideal situation but it is what I have to work with. I have to modify those files to accomplish the ordering. I could possibly create a function that could be included in the template files so that it won’t break on upgrading, but I don’t see the advantage of deviating away from the core files. Glad you got it figured out and I’ll make it clearer up top that you have to re-upload those files when upgrading.

  64. I just found thid and was wondering if th is would help me make a links page without the blogroll?
    I’ve sccumulated quite a few nice links over the years and would like to list them on a links page
    Thanks!

  65. My sidebar is built dynamically and uses the wp_get_links function. I was able to use your plugin and the extra database column the plugin utilizes by changing my database query from:
    $link_cats = $wpdb->get_results("SELECT cat_id, cat_name FROM $wpdb->linkcategories");
    to this:
    $link_cats = $wpdb->get_results("SELECT cat_id, cat_name FROM $wpdb->linkcategories ORDER BY `my_cat_order` ASC");

    Thanks for the great plugin, it is exactly what I was looking for.

  66. I think this tool messed up my internal permalink system.
    There are no more internal incoming links since I installed it 6 days ago.
    Using wordpress 2.0.3. and the template “greening”

  67. Is your “internal permalink system” just the standard stuff built into wp or something custom that you have installed? You are the first person to report any problems with permalinks.

  68. Thanks so much for this. Exactly what I was looking for.

  69. ok
    Now the first time it never worked despite me doing that get links thing.

    I am going to try to delete it from my plugin file and do a new install.

    Which version for 2.0?

    And just i case where would I have to change that get links thing ?
    How do I back up files in the wp administration thing? I seemed to have caused some parse problem last time I did anything in there so I want to be careful

  70. Great plugin.

    I would love to have a similar feature to organize page order. Any idea how to do that? Or can you create one?

  71. N/M I found on your site where you explain it. Thanks!

  72. Is the latest version of MyLinkOrder (2.0.2 & 2.0.3) also work on WP 2.0.4?

  73. I’ll have to check it out to be sure, but it looks like they haven’t done anything that would affect the plugin, which has been the case since 2.0. If you want to go ahead and try it (just backup the files I point out in the instructions) there isn’t much harm (if something does blow up just restore the backed up files). Either way I’ll upgrade and test it within the next couple days to be sure.

  74. Yep, works just fine in 2.0.4 – no adverse affects that I can see.

  75. Fantastic plugin, exactly what I was looking for. Install was a breeze and worked first time with no tweaking – many thanks!

  76. thanks – exactly what I was looking for also. Much apprecaited.

  77. Great! Plugin worked first time. Clear instructions, everything was straight forward. I’ve been looking for this for a while.

  78. Andrew, thanks for this plugin. I was hoping you could point me in the right direction for fixing a problem that I’m having. I installed the plugin with 0 problems, and I can order links withing categories. I cannot, however, order how the categories get displayed. I make the change in the plugin, but there’s no effect on the live site.

    Please steer me in the right direction.

  79. Hi,

    Thankyou for the plugin. However, there is a conflict with the “coppermine” plugin. I suspect the two plug use the same variable to store the database name, as a reasult when I turn on the coppermine plugin, it try to look for album.wp_linkcategories.

    Any idea how can I fix it? Thanks.

  80. I just got your plugin installed without any problems(except the links.php and link-categories.php files were not included in the download, so I got them from the mylinkorder-1-5-2.zip file)

    I have set all the categories to Manual now but when I go to the “My Link Order” tab the two arrows are not there so I cannot change the order.

    Any ideas???

  81. Hi, I installed, and when I switch to Link order “Manual” I get the following error:

    WordPress database error: [Unknown column 'link_manual' in 'order clause']
    SELECT link_url, link_name, link_image, link_target, link_description, link_rating, link_rel , IF (DATE_ADD(link_updated, INTERVAL 120 MINUTE) >= NOW(), 1,0) as recently_updated , UNIX_TIMESTAMP(link_updated) AS link_updated_f FROM wp_links WHERE link_visible = ‘Y’ AND link_category = 1 ORDER BY link_manual ASC

    Any Hints?

  82. Looks like your links.php didn’t get updated or you aren’t using get_links_list() in your sidebar template. Check those out and let me know, but those are the most common reasons for an error like that.

  83. on my 2.02 install category order works and link order shows correctly on plugin page, but not in sidebar..? please help! thx!

  84. I have the same problem as “eyetag” (post no 86). The plugin page shows exactly how I would like the link order, but it still sort it alphabetically in the sidebar.

  85. I found the trouble; the sidebar.php didn’t used get_links_list(). Just as you pointed out in another reply here.

  86. err…

    Do not use hardcoded database table adresses… (in alter “alter table”…)

    Use ie “$wpdb->linkcategories”, ’cause “wp_” is only default table prefix… not, the only possible.

  87. An updated zip file is available using the wordpress database object. This plugin was the first code I had written for WP so I guess it shows.

  88. Thanks for a great plugin, I have been attempting to fix that by looking into the source files without any luck…But now it works exactly as wanted just after a few clicks:)

    Thank you!

  89. Hi Andrew,

    Hope you can help. I’ve downloaded and installed your plugin as instructed. However my link categories do not appear in the order I chose. I think this might be something to do with the Tiga (with sidebar widgets) theme I’m using. I don’t really know much about this but I’m assuming the problem would be with sidebar.php? In the Tiga theme folder I’ve opened sidebar.php and have isolated the following section which I assume refers to the links/categories.


    get_results("SELECT cat_id, cat_name FROM $wpdb->linkcategories");
    foreach ($link_cats as $link_cat) {
    if (get_links($link_cat->cat_id, '', '', '', FALSE, '', FALSE, FALSE, -1, FALSE, FALSE)) {
    ?>
    cat_id; ?>">
    cat_name; ?>

    cat_id); ?>


    Any ideas what is going wrong and which pieces of code I would need to change?
    Thanks in advance. Greg.

  90. oh, that code didn’t all appear. I’ll try emailing it to you instead.

    Thanks.

  91. The following code will do the trick. Slightly annoying that the Tiga theme doesn’t use the standard method of getting the categories. Doing a query like that in the theme template is usually a big no-no. Watch out if you upgrade to WP 2.1 coming out some time soon, your theme will most likely break.

    <!-- Begin - Links from the 'Links Manager'-->
    <?php
    $link_cats = $wpdb->get_results("SELECT cat_id, cat_name FROM
    $wpdb->linkcategories ORDER BY my_cat_order asc");
    foreach ($link_cats as $link_cat) {
    if (get_links($link_cat->cat_id, '', '', '', FALSE, '', FALSE,
    FALSE, -1, FALSE, FALSE)) {
    ?>
    <div class="left-widget-title"
    id="linkcat-<?php echo $link_cat->cat_id; ?>">
    <?php echo $link_cat->cat_name; ?>
    </div>
    <div class="left-widget">
    <ul>
    <?php wp_get_links("category=$link_cat->cat_id&orderby=manual"); ?>
    </ul>
    </div>
    <?php
    }
    }
    ?>
    <!-- End - Links from the 'Links Manager'-->


    Andrew

  92. Great plugin, thanks!

  93. Had some problems in the beginning but got it finally. Works great. I suppose you have to do those installation steps IN ORDER to get it going…
    didnt set “order links” to manual before i started reordering them. that messed it all up i guess.
    just reset everything and do the steps again it should work fine then.

    Thanks a bunch for that plugin!

  94. oh, and the same plugin for sections would be awesome.
    hope you spoil us with that one kinda soon!

  95. I just saw that 2.0.5 is out (one day after I took the time to update to 2.0.4, ‘doh)
    Could you look if this plugin works as it should with 2.0.5 and tell me before I dare to install this =P

  96. Thanks for the notification about 2.0.5 Soilheart, I thought I signed up to be notified by email. Anyways, updated the plugin to include changes to link-categories.php.

  97. I just used your plugin on a client site and you SAVED my life. I’m bookmarking you and using you for all of my client blog sites in the future. I’ll get a link to you up on my site asap. Thank you! You can see it here: artsyfran.com

  98. THANK YOU for this elegant and handy plug in. A very nice piece of work!

  99. Phew! Just great. Had headaches trying to sort my links the way i wanted. Well done! Thanks!

  100. For some reason the up and down arrows arent showing up so i can’t organise my links :/

  101. Thanks for the plugin, but I can’t seem to get it to work. First I got the database error, which went away after using the Links Order page. However, the links order isn’t changing. I uploaded the correct php file and am using get_links_list(), so I’m not sure why it isn’t working.

  102. Hy!

    Thank you, this Plugin is very nice!

  103. download link doesnt work

  104. Links seem to be working fine for me. Maybe just a server hiccup.

  105. i keep getting a blank page when i activate the latest plugin with 2.0.5

  106. Hi there,
    I just stumbled across your plugin for My Link Order.

    Duh.

    This should be included in the standard build of WP if you ask me, bundled with Word Press, as part of the release.

    Something you might want to mention in your instructions- TURN OFF THE WP CACHE if it’s enabled.

    Man, I sat here making changes, refreshing, and it didn’t take. So I dug through WP, checking permissions on the files, thinking it’s not able to write or something.

    Then it dawned on me. WP Cache. As soon as I disabled it, bingo, works like a charm.. might make mention of this in the instructions so others won’t sit here like a chucklehead for hours on end like I just did.
    I’ll learn. Eventually. ;)

    Now that this issue is solved, I’m off to install the other ordering plugins. Thanks for these, they’re the answer to some big headaches.

    Congrats on the engagement by the way.
    Steve

  107. Worked great for me right out of the box on a new 2.0.5 install. This should definitely be a standard WordPress feature. Thanks for the plugin.

  108. im using 2.0.6 and i cant get it to work. Why isn’t this already apart of wp!!!

  109. I haven’t updated My Link Order to 2.0.6 yet, it was on my list of stuff to do this weekend. Check back in a few days and I should have a new version up.

  110. I can’t get My Link Order to work! I copied the files as you suggested, but it won’t sort the links, can you advise?

  111. i keepgetting a blank page when trying to activate the plugin

  112. Well that might be a first, is the “Activate Plugin” page coming up blank or when you go to the “My Link Order” page?

  113. Also I have not updated for 2.0.6 or 2.0.7 yet so if you are upgraded to the newest version then that might be the problem.

  114. i’ve tried it with a fresh WP 2.0.7 install and its the only plugin, the activate plugin page is blank,

    I also have it on 2.0.5, its still a blank page when activating plugin, i have another version of 2.0.5 that its working on but not sure why it won’t work on this one, i used the same mylinkorder folder as well but one it works and the other it doesn’t

  115. Not sure there’s a lot I can tell you mushu since I’m a little stumped. It might be erroring out but the error message is hidden, check out the source and see if there’s anything there.

  116. 2.05, I installed it, but it doesn’t offer “manual” (I’m using tiga-06 theme)

    So, I see the plugin, change the order, but it does not take effect. Am I supposed to re-upload my *backed up* files? or overwrite with the new ones? The links are still there.. so I’m a bit confused.

  117. Well, like others on this board, I found (finally) my own error – and I think people are not saying it loudly or clearly enough – MANUAL IS FOUND IN THE AREA FOR LINK CATEGORIES!!!! Now, it’s working fine

  118. WP 2.1 is now out and it would appear that the current version won’t work because of changed file names in wp-admin, etc.

    Is a new version likely to be released for 2.1?

    Love the plugin…it works like a charm in 2.0x

  119. MANUAL IS FOUND IN THE AREA FOR LINK CATEGORIES

    Guess I’m not following you here.

    I just upgraded to 2.1, and this plugin is no longer working for me. I downloaded and installed the 2.1 plugin version. Where do I go to select ‘manual’ link order?

    Also, do we not change the links.php and link-categories.php files in this version of My Link Order?

    Also, in the instructions is something I don’t understand, at least, I’m not sure where it goes in the sidebar:

    Modify sidebar template to use correct filter(additional parameter seperated by ampersands):
    wp_list_bookmarks(’orderby=order&category_orderby=order’);

    Thanks in advance for your help. If anybody would like to take pity on a poor blogger, my email is rickscheibner AT gmail DOT com

  120. Hey Rick, I’m still working on differentiating between 2.1 and the old stuff. You no longer need to copy those 2 files, just the plugin folder. In your template find the spot where your links are being displayed with get_links_list();. 2.1 has introduced a new function wp_list_bookmarks that is more flexible and allows the links to be ordered how you want without modifying the core files. The following is the minumum you need to display your links:

    wp_list_bookmarks(’orderby=order&category_orderby=order’);

    I’ll revise the page to help make things more clear.

  121. Andrew, thanks for your quick response. I’ll disregard those two files.

    I’m still not exactly sure where the additional code goes, though. I see this:

    But I’m not exactly sure where to put this:

    wp_list_bookmarks(’orderby=order&category_orderby=order’);

    Thanks again for the support here.

  122. Thanks for the reply at WP. I’m using 3 column K2.
    I installed this plugin and it didn’t seem to do anything. I tried replacing get_links_list() with

    wp_list_bookmarks(’orderby=order&category_orderby=order’);

    in sidebar.php but it did not seem to make the plugin functional in the sidebar for 3CK2.

    In your installation instructions, is there some reason why the wp_list_bookmarks() modification comes after ordering the bookmarks? Does the order somehow dictate the modification you need to do?

    It seems like you are saying just paste:

    wp_list_bookmarks(’orderby=order&category_orderby=order’);

    into the template, but that did not do the trick for me (though it did not _cause_ errors either, so WP seems to work fine with it present.)

    A

  123. Just wanted to say thanks. Used to do it the hard way: remote mySQL.

  124. Thank you so much for this wonderful plugin. It did everything I needed it to do after encountering problems with the 2.1 update.

    Thanks once again!

  125. After updating to 2.1 this plug-in was very nice. Very simple to use and works perfectly!

    Thank you!

  126. Great plugin. However, with 2.1 the link categories are in rather huge font while the links within the categories are normal sized but heavily indented.

    Try as I might, I cannot find where or how to modify the size of the category font and how to lessen the indent on the individual links within the categories. any help you could provide would be appreciated.

  127. Hi.
    Sorry, but when I try to start your mylinkorder-plugin, V2.1 under Wordpress 2.1 (german), I get the following error-message.
    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 67584 bytes) in /mnt/kw2/08/565/00000012/htdocs/blog/wp-admin/menu.php on line 46
    After that, access to the admin-site only after deleting the plugin from the plugin-directory.

    Whats the problem?

  128. I could be missing something easy here, but would appreciate any help you could offer. I upgraded to WP2.1 and then upgraded this plugin to 2.1 as well (awesome plugin, by the way). I’m using the Sidebar Widgets plugin to manage my sidebar. I can see the controls for the plugin under the “Blogroll” tab, but the changes do not affect the order of the links. I’ve tried replacing the code in the widgets.php plugin file, but I must be messing up because I keep crashing the blog when I do that. Any recommendations?