On Patching Wordpress with Atom 1.0

Niklas Lindblad, in the comments to the post on hAtom, wrote to remind me that James Snell has a drop-in replacement for wp-atom.php that will upgrade your Wordpress blog’s Atom feed to 1.0.

In order to use that with PHP 4, apply Niklas’ patch.

Finally, if you don’t want to syndicate your feed’s content as escaped HTML, apply my patch that combines my changes and Niklas’ to James’ code. However, you’re now responsible for making sure your entries are valid XHTML.

Note: after applying the patch, you’ll need to modify the format string passed to the_time to account for your offset from GMT. There’s probably another way to do this.

More like this: , , .

3 Comments

  1. Posted August 10, 2006 at 7:17 am | Permalink

    Minor correction: it’s James, not Jason :-)

  2. Posted August 10, 2006 at 7:59 am | Permalink

    @ James: Sorry about that. Fixed.

  3. Posted August 10, 2006 at 9:16 am | Permalink

    Also note you can now do Atom 1.0 comments automagically along with WP internal rewrites if you do my little change to functions.php. I posted about it over here:

    http://ckon.wordpress.com/2006/08/10/wordpress-20-21a-is-still-using-atom-03/#more-13

    that way /comments/feed/atom/ will work :)

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*