WordPress Blogroll Ordering – My Link Order Patch for 2.8

icon_wordpress1In my post about the plugin “My Link Order” for ordering your blogroll links, I talked about what a great plugin it is. Then WordPress 2.8 came out and it caused My Link Order not to work. The patch/fix for this is not very intuitive, so I’m laying it out below:

  • Log in to your WordPress as admin;
  • Click on the “Links” link in the left navigation;
  • Click on “My Link Order” in the list that is displayed;
  • On the “My Link Order” page are the instructions for patching /wp-includes/taxonomy.php so that My Link Order works in WordPress 2.8.
  • At line 683, after this code:

    elseif ( empty($_orderby) || ‘id’ == $_orderby )
    $orderby = ‘t.term_id’;

    you paste the following code:

    else if ( ‘order’ == $_orderby )
    $orderby = ‘t.term_order’;

and then your blogroll shows up again!

Technorati Tags: , ,

  • http://www.connectedhome.infopint.com ShanK

    I upgraded from 7.1 to 8.3 version, not this plug has messed up my links. Does this patch applies to 8.2 version as well.

    • http://www.hyperarts.com admin

      I’m not sure what these versions are you’re talking about. WordPress 2.8 was the version I was discussing and how to patch it so that My Link Order plugin works again.

  • http://www.wowtutorial.org chai

    really helpfull tutorial :) this will fixed my wordpress 2.8 also thanks for the post broo keep up a good work :)

  • Lou

    Where can I just get the taxonomy.php file for wordpress 2.8.

    I accidentally uploaded my old one…

  • Lou

    this patch isn’t working…

    my links still aren’t showing up…

  • Lou

    I figured it out…It’s actually the other way around…

    The following code:
    else if ( ‘order’ == $orderby )
    $orderby = ‘t.term_order’;

    Should be placed above this code..;
    elseif ( empty($_orderby) || ‘id’ == $_orderby )
    $orderby = ‘t.term_id’;

    Starting at 683, it should look like this;
    else if ( ‘order’ == $_orderby )
    $orderby = ‘t.term_order’;
    elseif ( empty($_orderby) || ‘id’ == $_orderby )
    $orderby = ‘t.term_id’;

    • http://www.hyperarts.com admin

      Actually, it should work no matter which order the two conditional statements are in, at line 683 in taxonomy.php. I tested both orderings and My Link Order worked fine. The *important* thing is to make sure you use the My Link Order widget if your theme uses widgets (as you knew, and I found out!).

  • http://www.hometheaterhack.com/ Paul

    Man, I love tips and help like this. I actually got it to work, and I’m not overly technical. Took me about 30 minutes to figure out where to go to edit, but if I ever have to do it again, it won’t be too hard. Thanks

    The one commenter was wondering where to get the raw files again.. you can get them right at wordpress’ main site, I’m pretty sure.

  • Daniel Go

    great help from you guys, thank you so much. I’ll share this post. :)

    cheers,
    Daniel

  • http://www.pegandrail.com Peg Rhodes

    Thank you for the plug-in. I think this is something that they would build directly into WordPress.

  • jerome rosco

    Does this patch apply to all versions? Better ask before I’ll try putting one. Thanks. http://www.everdress.com/junior-clothing

  • http://pulse.yahoo.com/_354AK2DYNQPPYXJHMR2ZVWOLNI jerome

    My blog is in WP and this plug-in is a valuable addition. Thanks for sharing.http://www.muranochandeliers.com/