Sandbox and Strangelove: hAtom in Wordpress

I hung out in the back of the hall at Wordcamp, adding hAtom support to the default Wordpress theme.

I showed my work to Bill Lazar, who told me that Scott Allan Wallick’s new theme, Sandbox, available for Wordpress.com blogs, has hAtom baked in.

Well, that makes my work, Strangelove, v0.1, superfluous.

You can use Chris Casciano’s script for Net News Wire to read a Sandbox themed blog as Atom, or pipe it through Luke Arno’s hatom2atom proxy.

If you’re comfortable with editing PHP, open themes/sandbox/header.php, and add the following to the head section:

<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="http://www.lukearno.com/projects/hatom2atom/?ctype=application%2Fxml&tidy=yes&url=<?php echo urlencode(get_bloginfo('url')); ?>" />

This will use Luke Arno’s proxy to generate an Atom 1.0 feed by parsing the hAtom format in the page. Strangelove does that out of the box.

If you’re running PHP 5 with libxslt support, you can run Chris’ filter script instead of the remote proxy.

At the µformats session, where you see me doing my Nikita Khrushchev imitation, I talked about this. Thanks to Tantek for inviting Slashchick and me up to talk about our hacks.

Slashchick modified the Countdown plugin to publish events in the hCalendar format, so that you can extract them from a blog page into your calendar.

Additional Tags: , ,

Possibly Related posts (machine generated):

  1. Subscribing To hAtom Feeds With NetNewsWire
  2. The State of Screen Scraping
  3. Atom Bank Shot
  4. On Patching Wordpress with Atom 1.0
  5. XSLT Friday

More like this: , , , , .

  • Well I certainly appreciate your effort...
  • Hi! A few days ago I stumbled upon a fix for Atom 1.0 in Wordpress, I blogged about it if you're curious: http://nlindblad.org/2006/08/05/wordpress-atom-...
  • @ Niklas: Thanks, Bill Lazar pointed it out to me. I had been using an earlier version of the Atom 1.0 patch, but updated to James' Sunday evening.

    I modified it further, and will post my patch to the patch in a day or two.
  • @ Pete: I didn't mean to sound bitter. I think Sandbox is going to be huge, and it sounds like it will be the new default template for Wordpress.
blog comments powered by Disqus