[wp-hackers] Atom 1.0

Pete Prodoehl pete.prodoehl at cygnusinteractive.com
Mon Sep 12 13:50:08 GMT 2005


Mathias,

View the source of these two feeds:

   http://tinkernet.org/feed/atom/

   http://tinkernet.org/mathibus-atom.php

You'll see the first one uses 'link rel' code for any post with an 
enclosure like so:

   <link rel='enclosure'
    type='video/quicktime'
    title='Video'
    href='http://example.com/video.mov'
    length='2316226' />

I accomplished this through some semi-ugly hacking that is nothing to be 
proud of. I mean, it works, but I'd really like to see someone who knows 
PHP and WordPress better than me do it right, and add it into the 
wp-atom code. Care to take on that task? ;)

(I'll be glad to provide the code I have, as long as you promise to 
re-write it and make it respectable!)

Pete


Mathias Bynens wrote:
> I'm not sure what you mean, Pete, but anyway the feed validates as
> Atom 1.0 so I don't think there's a problem. I didn't make any of
> those changes though... ??? Please check the source code
> <http://mathibus.com/examples/wp-atom> and see if it's okay.
> 
> On 06/09/05, Pete Prodoehl <pete.prodoehl at cygnusinteractive.com> wrote:
> 
>>Mathias Bynens wrote:
>>
>>>IMHO Atom 1.0 is a must-do upgrade.
>>>
>>>See <http://mathibus.com/examples/wp-atom> (add the .phps extension if
>>>necessary; I'm using MultiViews but IE doesn't quite seem to handle
>>>those very well) for my cleaned-up version of wp-atom.php, which
>>>(besides the cleaning up part) also adds support for categories with
>>>HTML in their title. I deem this to be the most perfect wp-atom.php
>>>out there for use on any WordPress install. Suggestions? Do let me
>>>know.
>>
>>Does it handle enclosures properly?
>>
>>I had to hack at feed-functions.php and create an atom_enclosure
>>function as the rss_enclosure function that was being used for
>>wp-atom.php was fine for RSS but all wrong for Atom.
>>
>>
>>Pete
>>
>>


More information about the wp-hackers mailing list