Enabling Atom 1.0 on Wordpress

Ok, so it’s about time I got around to offering some more helpful advice on how to enable Wordpress to use Atom 1.0. First off, there are the templates. Download the tar, pull out the wp-atom.php and wp-commentsatom.php and drop them into your wordpress folder (overwriting the Atom 0.3 template). You’ll likely want to make a few customizations of the templates if you want to associate feed icons and licenses with the feeds and entries.

The wp-atom.php template should just work as a drop in replacement to existing Atom 0.3 feed so you can either stop here or, go one step further and make the Atom 1.0 feed the default for your blog. I did this by editing my Wordpress template Header, removing all mentions of RSS and replacing the link alternate with <link rel="alternate" type="application/atom+xml" title=" Atom Feed” href=”wp-atom.php” /<.

If you want to make your Atom feed the only option available for your blog, and you’re running on Apache, you can edit .htaccess to redirect requests for the RSS feeds to the Atom feed. I’ll post more on this later.

Once you get your Wordpress Atom 1.0 feed up and running, head over the Atom wiki and let folks know.

Update: I should have mentioned that the template I provided is targeted at PHP5. If you’re running PHP4, try this patch.

10 Responses to “Enabling Atom 1.0 on Wordpress”

  1. Agylen » Enabling Atom 1.0 on Wordpress Says:

    […] 5 Aug 2006 Enabling Atom 1.0 on Wordpress Posted by ugo under miscellaneous(bookmark this)   James Snell: “Ok, so it’s about time I got around to offering some more helpfuladvice on how to enable Wordpress to use Atom 1.0. First off, there are the templates. Download the tar, pull out the wp-atom.php and wp-commentsatom.php and drop them into your wordpress folder (overwriting the Atom 0.3 template). You’ll likely want to make a few customizations of the templates if you want to associate feed icons and licenses with the feeds and entries.” […]

  2. Niklas Lindblad » Blog Archive » Wordpress Atom 1.0 Support Revisited Says:

    […] There has been a fix for this however, but there were some flaws I found while trying it out: […]

  3. _ck_ says… » Wordpress 2.0 & 2.1a is *still* using Atom 0.3 Says:

    […] (the original php5 fix is here but I figure most people are still using php4) […]

  4. Fluchtgedanke » Blog Archiv » Wut, Trauer und eine gewisse Zufriedenheit Says:

    […] Etwas zufrieden bin ich jedoch, weil es endlich einen ATOM1.0-Feed für Wordpress gibt. Ein netter Mensch hat sich die Arbeit gemacht und einen solchen geschrieben. Obwohl ich noch etwas Probleme mit dem Datum habe, bin ich überrascht, wie gut der läuft und ihn gleich zum Standard gemacht. […]

  5. opensoul.org » Upgraded Atom feed to 1.0 Says:

    […] Thanks to a post on snellspace.com, I have updated this blog to use Atom 1.0. Due to URL Rewriting, it isn’t quite valid, but that will be a simple fix. […]

  6. Plugins » The Fascination Place Says:

    […] Atom 1.0 replacement for wp-atom.php (suggested by Whump). […]

  7. BSBlog » Blog Archive » Atom 1.0, the better way Says:

    […] After having mucked yesterday with my WordPress to add threading to my Atom feed, I found there’s a better way. I’ve taken James Snell’s Atom 1.0 templates, fixed them up a little bit, and packaged them as a WordPress plugin (instead of uploading them directly into the WordPress install, which makes it hard to upgrade WordPress). Download here. Source here. […]

  8. Agylen » So long, RSS Says:

    […] I was pretty sure I had modified the Atom feed for this blog to output Atom 1.0, using James Snell’s templates for Wordpress. I was certainly serving Atom 1.0, because I remember I validated it and even proudly displayed the badge. […]

  9. Bitacolitis Aguda Says:

    Activant Atom 1.0 al WordPress…

    Ahir me va pegar per validar el blog amb els distints validadors que hi ha. Valida com a XHTML 1.0 Strict, les CSS també validen els Feed RSS també validen, però l’Atom no. Oh Wait!!
    En el validador me sortia un missatge que deia el següent: …

  10. ...time is what you make of it... Says:

    Wordpress feed Atom 1.0…

    Andando avanti con lo sviluppo di Blog Validator, il prossimo passo sarà quello di inserire il controllo di validità dei feed.
    Facendo qualche prova però, mi sono accorto che Wordpress (anche nell’ultima versione, la 2.0.7) utilizza ancora la …