Wordpress Atom 1.0 Support Revisited
Saturday, August 5th, 2006Something that has bothered me ever since I started using Wordpress is that this awesome piece of blogging software does not support the newer version(s) of the Atom syndication format. Currently version 0.3 is being used, a version that most feed validators have chose to declare as deprecated these days.
Apperantly “whump is looking for volunteers to work on Atom support for wordpress.” according to the Wordcamp 2006 Wiki.
There has been a fix for this however, but there were some flaws I found while trying it out:
- It used the ISO 8601 time format which PHP 4 does not support using the ‘c’ key to the date function (the_time(’c'); doesn’t work)
- The self link (the link pointing back at the feed) was set to wp-atom.php, it should be http://blogURL/feed/atom
After resolving the above issues everything works flawless and the feed is valid Atom 1.0.
Since the author of the fix did not seem to have picked a license for the fix and I don’t dare assuming it falls under the same license as Wordpress I will only publish the patch that made it all work for me. Download the fix and patch the file wp-atom.php using the patch command (UNIX).
If enough people would try this out and gave feedback to the author of the fix or me (preferably him, I did nothing) we wouldn’t be far from our small goal regarding good Atom 1.0 support in Wordpress.