I’d been thinking for a while about the links interface in WordPress. It wasn’t as flexible as I wanted it to be so I decided to try to write a WordPress plugin using Magpie to use my del.icio.us feed. After a few hours of fudging around with it I was getting somewhere. Then I broke it and couldn’t rollback. (There’s a lesson.) Anyway, rather than carry on with the plugin, I hacked the index file like this (ala Richard Eriksson, via Jon Hicks):

<!-- Joe's Delicios Links -->
<li>Joe's del.icio.us links
<ul>
<?php
require_once ("wp-content/plugins/magpierss-0.61/rss_fetch.inc");
$yummy = fetch_rss("http://del.icio.us/rss/nzjoe");
$maxitems = 10;
$yummyitems = array_slice($yummy->items, 0, $maxitems);
foreach ($yummyitems as $yummyitem) {
	print '<li>';
	print '<a href="';
	print $yummyitem['link'];
	print '"';
	if (isset($yummyitem['description'])) {
		print ' title="';
		print $yummyitem[’description’];
		echo htmlentities($yummyitem[’description’]);
		print ‘”‘;
		}
	print’>’;
	print $yummyitem[’title’];
	echo htmlentities($yummyitem[’title’]);
	print ‘</a>’;
	print ‘</li>’;
}
?>

not pretty code, but it works. Now I just have to remember to give all of my delicious posts meaningful titles and descriptions.

Of course this could be used for any RSS feed. And you can also give delicious links a specific tag for when you want them appear on your site and point it at the feed for that delicious tag. (e.g http://del.icio.us/rss/myname/mytag)

UPDATE 2: Contact me for the latest version. WP does funny things with the single and double quotes