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!

Follow me on Twitter

, ,

  1. #1 by ShanK - August 6th, 2009 at 11:23

    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.

    • #2 by admin - August 7th, 2009 at 08:53

      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.

  2. #3 by chai - August 6th, 2009 at 20:20

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

  3. #4 by Lou - October 6th, 2009 at 12:37

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

    I accidentally uploaded my old one…

  4. #5 by Lou - October 6th, 2009 at 12:43

    this patch isn’t working…

    my links still aren’t showing up…

  5. #6 by Lou - October 6th, 2009 at 13:24

    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’;

    • #7 by admin - October 6th, 2009 at 15:26

      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!).


(will not be published)

Be sure to wrap all code in <code></code> tags.

Submit Comment
  1. No trackbacks yet.