This page is an archive for the older versions of My Link Order. All new comments should be made here.
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.
Download My Link Order:
- WordPress 2.5: Now hosted at the WordPress.org Plugin Directory
- WordPress 2.3.2: mylinkorder2-3-2.zip
- WordPress 2.3: mylinkorder2-3.zip
- WordPress 2.2: mylinkorder-2-2.zip
- WordPress 2.1: mylinkorder-2-1-3.zip
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
- Unzip packed files
- Move mylinkorder.php to /wp-content/plugins/
- 2.3 only: move taxonomy.php to /wp-includes/
- Activate the “My Link Order” plugin on the Plugins menu
- Go to the “My Link Order” tab under Blogroll and specify your desired order for both link categories and links in each category.
- WIDGETS: Just drop the “My Link Order” widget that gets installed with the plugin and that’s it!
- 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.
I have this error when I click on Activate in the plugins menu:
Parse error: syntax error, unexpected $end in mylinkorder.php on line 170
(WordPress 2.1.1)
Any ideas ?
Thanks :)
Ced,
Try downloading it again, I found the same problem on my other plugin but hadn’t updated this one yet.
Same error :s
Arg missed one occurrence of the problematic syntax, try it again.
Hello,
I am looking forward to using your excellent plugin, but unfortunately I have hit a minor snag. When I install and activate the plugin, then go to the “My Link Order” section under blogroll, I get an error saying that the wp_categories table does not exist. Any ideas?
Thanks,
John
Man, this works great, but it totally dies when Widgets are activated. Any plans to Widgetize your plug-ins in the future?
It works with widgets but you have to either modify the widget plugin files or create a new widget which someone else has already done, http://blog.agladman.com/2007/02/14/my-link-order-widgetized/. You still use my plugin to set the order of links but that will get it going with widgets.
Huh – I tried that one and it didn’t work, and I’ve been unsuccessful in widgetizing it myself. Ah well – great plug-in either way!
Regarding 2.1, I don’t understand step 5 of the instructions. Is this an edit in to sidebar.php in Theme Editor? If so, I don’t find anywhere.
Am I supposed to paste: in sidebar.php?
I had this working in prior version and love it. I have to get it working again.
Thanks.
Hmmm. Previous post didn’t take code I pasted in. I’ll try this…
Do I paste “wp_list_bookmarks(‘orderby=order&category_orderby=order’); in sidebar.php?
I use the theme Green Marinée 1.0. The original sidebar.php contains ‘, ”, ”, 0, ‘name’, 0, 0, -1, 0); ?> if I replace this with: I get:
Blogroll
BLOGROLL
followed correctly by the items in My order. I am unhappy with the:
Blogroll
BLOGROLL
but am unable to correct this. Can anyone assist me? Thanks in advance.
Previous post didn’t take code I pasted in. I’ll try this… I use the theme Green Marinée 1.0. The original sidebar.php contains get_links(‘-1’, ”, ”, ”, 0, ‘name’, 0, 0, -1, 0); if I replace this with: wp_list_bookmarks(‘orderby=order&category_orderby=order’); I get:
Blogroll
BLOGROLL
followed correctly by the items in My order. I am unhappy with the:
Blogroll
BLOGROLL
but am unable to correct this. Can anyone assist me? Thanks in advance.
the first Blogroll is a result of:
the second one over which I have no control is according to the Code Source: BLOGROLL
see: http://www.infinita.fi/blog
Previous post didn’t take code I pasted in. I’ll try this…
the first Blogroll is a result of:
h3 Blogroll /h3
the second one over which I have no control is according to the Code Source: ul li id=”linkcat-2″ class=”linkcat” h2 BLOGROLL /h2
see: http://www.infinita.fi/blog
So, after a few hours of messing with this, I finally looked a bit closer at the code and got it to work. Duh. I’m running WordPress 2.1, with sidebar widgets installed, and the Kubrick/default theme, for now. At first, I couldn’t get the plugin to work on the journal page itself, though it sorted the links just fine in the admin area. Then I saw other people having similar issues, so I thought I’d post my solution in case it helps someone else.
Instead of editing any of the theme files, you need to edit the actual sidebar widget via the admin/plugins section. The function to change is as follows (note the commented out original code)
function widget_links($args) {
global $wp_db_version;
extract($args);
if ( $wp_db_version $before_title, 'title_after'=>$after_title));
wp_list_bookmarks('orderby=order&category_orderby=order');
}
}
okay, so that code paste didn’t work out quite as planned =.= (d’oh)
But basically, you want to replace the get_links_list call with the example given by the plugin author, AS WELL AS the existing wp_list_bookmarks call within that same widget_links function.
And then, as far as I can tell, everything works fine on a widgetised “platform”.
Cheers for a great plugin, by the way ^_^
Clear as mud.
Eric,
assuming that comment was directed at my posts, you can always send an email to lilimist AT gmail DOT com and I will walk you through it. I was unsure of exactly how to format the code to get it to post in here and I didn’t want to spam the comments section while I figured it out.
You’re welcome :P
I helped Eric gets his stuff going, it was the Sidebar Widgets. I took a closer look at the Widgets stuff and will post up some “official” widget installation instructions.
To be fair to both Lili and Eric, I too found the instructions posted by Lili to be a tad obtuse, until I thought to actually open the sidebar widgets file under Plugins/Plugin Editor. To make things a bit clearer, I did a search for the line “function widget_links($args)”. Then I replaced the line that says get_links_list(); and the line that says wp_list_bookmarks(array(blah blah blah)); with the line wp_list_bookmarks(‘orderby=order&category_orderby=order’);
That seemed to work fine. Thanx heaps to Andrew for the neat plugin, and Lili for eventually solving my frustrations getting it to work with widgets.
Oh, and Andrew, I don’t know if installing the “Live Comment Preview” plugin would help everyone who seems to be having trouble copying and pasting code here? Might be worth a test-run.
Peace,
Kadaj
Your plugin is very useful, but it creates in the source code a then a and a second .
On my site for example :
Photoblogs
A Walk Through Durham Township
Deceptive Media
Mexican Pictures
Mute
NoushinBlog
The bitter*girls
The G8
But is it your plugin or a WordPress mistake ?
Oups…
We can’t see everything I wrote.
How can I contact you ?
Awesome plugin, thanks for the good work.
I’ve found that the absolute easiest way to use this great plugin as a widget is to get the Widgetize Anything plugin (erik-rasmussen.com/blog/2006/11/30/widgetize-anything/) and then in a widgetize anything dragabble box just paste in:
wp_list_bookmarks(‘orderby=order&category_orderby=order’);
You can see the results at dunn-olivieri-racing.com/
Two great plugins make one super widget
works fine, thank you.
Worked great with 2.0.4. Moved to 2.1.3, and now gives me:
WordPress database error: [Unknown column ‘cat_order’ in ‘order clause’]
SELECT * FROM wp_categories WHERE cat_ID > 0 AND link_count > 0 ORDER BY cat_order ASC
Any ideas? I’m commenting it out for now, but I’d love to have it back! Thanks.
Hi!
Having problems with the Widgetize-Anything solution… I pasted the code (suggested by Paul #177), and get the following error code:
Sorry… the error code fir the above Comment (#180) is this:
# Parse error: parse error, unexpected ‘=’ in /homepages/40/d66174348/htdocs/lokalesuche/wp-content/plugins/widgetize-anything.php(25) : eval()’d code on line 1
#
Thanks
Peter
Hi, just read the previous thread of comments a couple of times but still not clear on the widgets issue, I also got a similar ‘parse error’ – anyway great plugin, I’ll continue to work on it. Maybe I missed something.
I wish this was already included in WP. Unfortunately I it doesn’t seem to change anything for me. I’ve updated the links.php file but no affect on the ordering.
Great widget! Exactly what I was looking for, implemented with no problems. Thank you so much!
I can’t seem to get this to work. I followed the directions to a t. Should we relace the ‘get links list’ in the links.php as well? I’m using WP 2.2 and seoprotheme 1.5.
I’d really like to use this.
Red all comments but not realy familiar with PHP. What exactly must be done to get the plugin working in my Sidebar(Template: DaisyRaeGemini),-installing was no problem, but entering the code in the sidebar gives the message:
Fatal error: Call to undefined function: wp_list_bookmarks() /xxxxxxxxx/content/themes/daisyraegemini/sidebar.php on line 218
My WP is 2.03,
Thanks for helping,
Lots of regards TN.
Yes! The latest version of wordpress – 2.2 – broke all the custom code I’d used to order and lay out my links list. Your plugin saved me the trouble of hunting down the change to fix it — and in the process of tweaking my css to get it looking the way I wanted, I found the solution to another problem that had been driving me nuts. You’re my new hero!
Great plugin, got it to work on my WordPress 2.2 to change link order in my blogroll, BUT, it added a title and messed up the sidebar box. My theme requires sidebar edits, widgets not enabled.
from source code:
My Links
Blogroll
See my blog to see what I mean at:
My blog
What can do to change this?
René
Sorry code tag didn’t work:
don’t know if this will
My Links
Blogroll
Thanks, Andrew, for such quick turnaround on fixing the code for my un-widget theme.
Perfection.
And you can make more than one bloglog with this?
Or work on the other categories?
I’ll have to play with it. Meantime you can see how My Links looks now on my Tales of King Tut’s Blog
I owe you a ‘Beer’,
thanks, Andrew,
René
Here’s how I got this to work with widgets.
In the widgets.php file in the widgets plug-in directory, change line 710 as follows.
Old code:
wp_list_bookmarks(array('title_before'=>$before_title, 'title_after'=>$after_title));
New code:
wp_list_bookmarks(array('orderby' => 'order', 'category_orderby' => 'order', 'title_before'=>$before_title, 'title_after'=>$after_title));
I hope this helps
I want to use My Link Order with the Vistered Little Theme (http://windyroad.org/software/wordpress/vistered-little-theme/). I can’t figure out where to put the replacement code for get_links_list since the sidebar (monosidebar.php or quadsidebar.php) calls a more complicated function in functions.php. (The theme uses widgets in the sidebar). Any suggestions?
If you run the lastest version of WP (2.2.+) you will need another solution.
First above mentioned widget folder in the plugins directory is useless
“>
http://codex.wordpress.org/Upgrading_WordPress#Step_7:_Delete_the_old_WordPress_files
Now modify the widgets.php in the WP-includes folder
change line 398 as follows:
old code:
'title_before' => $before_title, 'title_after' => $after_title,
‘orderby’ => ‘order’, ‘category_orderby’ => ‘order’, ‘title_before’=>$before_title, ‘title_after’=>$after_title,This worked for me… :-)
If you run the lastest version of WP (2.2.+) you will need another solution.
First above mentioned widget folder in the plugins directory is useless:
Quote from wordpress.org
“Delete these Files and Folders:
* wp-content/plugins/widgets folder; You only see this folder if you previously installed the Sidebar Widgets plugin. The Sidebar Widgets code conflicts with the built-in widget ability.”
http://codex.wordpress.org/Upgrading_WordPress#Step_7:_Delete_the_old_WordPress_files
Now modify the widgets.php in the WP-includes folder
change line 398 as follows:
old code:
'title_before' => $before_title, 'title_after' => $after_title,
new code:
'orderby' => 'order', 'category_orderby' => 'order', 'title_before'=>$before_title, 'title_after'=>$after_title,
This worked for me… :-)
YEEEAAAAAAAH! This was the widget solution! May be the Author has to pull this information into the install steps. That wont cost other users hours of trying and angrying!
By & thx
greetz from germany
194
Change in widgets.php (from WP-includes folder) line:
‘title_before’ => $before_title, ‘title_after’ => $after_title, in
‘orderby’ => ‘order’, ‘category_orderby’ => ‘order’, ‘title_before’=>$before_title, ‘title_after’=>$after_title,
doesn’t seem to work for me. (Working in WP-2.2.1) The changing proces even after several minutes keeps hanging at “Updating Link Order”. (How long does updating the linkorder take?) Anyone a solution? Thnx in advance!
194 & 196
Got it working now! (But it wrecks the typografics of the category-names in the lower part of the right sidebar. The names no longer have their bigger fontsize en -type)
Awesome plugin! Just what I wanted. I do have one request – what line of code would I delete to prevent the Categories from showing up in my link list? I just want the list of links with no category heading.
Thanks
Thanks for the request and idea for new functionality. The built in function can actually do this but the widget didn’t have options for it. I’ve added new options on the widget, so reinstall the plugin from the link below, and then check the “Uncategorized” checkbox and leave the title box blank inside the widget’s popup menu. That will make that big bold “LINKS” go away in your sidebar.
Hi Andrew!
Great plugin! :D
One minor thing though – is there a way to change the formatting of the Categories? Right now the Categories are showing up in text that’s a much larger size than any other header in my blog, and that kinda spoils the whole look of it.
Thanks
My sidebar code is this:
‘, ”, ”, FALSE, ‘url’, FALSE); ?>
how do I modify it to make this plug in work?
Thanks
sorry, can you tell I’m new at this ?
', '', '', FALSE, 'url', FALSE); ?>
(hope this works)
ok – so that didn’t work either – help? how do I post code?
or this should work![]()