A long time ago, I wrote Huddled Parser to parse pretty much all versions of news feeds. It works on RSS .92 and 1.0 and 2.0 and ATOM, and even handles feeds with Yahoo’s media enclosures thumbnails embedded (like flickr feeds). I finally got tired of hacking that into each of my themes when I switch them around on the site, so I decided to write up a WordPress plugin.
Since I’ve recently been playing with DomTT tooltips for my ubernyms plugin, I figured I’d go ahead and take the time to add that to the Huddled Parser plugin as well, so you have several options for what to do with the images and descriptions that are in the feed (show them inline, show them in DomTT tooltips, or don’t show them). I’ve been careful to make this work with ubernyms, but I had to make a new release of that to keep them from both inserting the DomTT javascript (so, if you also use ubernyms, please go upgrade that to Version: 2.3 before installing this).
You can download it here, and I’ve included some base CSS you can modify, and plenty of options for parsing feeds: from limiting the length of the snippets of content, and headlines, to setting the maximum number of items you pull from each feed. To get the feeds to actually show up on your page, you just add a single line to your template: < ?php get_huddledparser_feeds_list(); ?>
The biggest thing, however, is that this plugin cache’s everything religiously. The result of that is that you can control how often the feed gets fetched from the server to avoid pounding other people’s servers, and to avoid too much slow-down on your own site as well. The best part is that not only do the feeds get cached, but the images get cached locally too.
Edit July 23, 2006]
Clearly, I’m a bit of a nincompoop sometimes, I left out a bit in this description, so here are the answers to the most frequent questions.
You should unpack the whole folder into your WordPress plugins directory, including the huddledparser.php plugin and the css file, especially if you want to use the feed css or domTT tooltips and it’s css.
The two feeds (currently) on my front page are both coming from the plugin and are styled entirely with CSS. You should be able to style yours any way you like, and to help you there are two special features: You can pass in a class name that will be added to the list (to the UL tag), like: get_huddledparser_feeds_list( "HPFeeds" ); And a sanitized domain (the domain of the feed) will be added as a class on that same ul, so if you had my flickr photos feed, in your feed list, and had passed “HPFeeds” as the class,the complete class list rendered would be: HPFeeds flickrcom so you can target each feed with your CSS, even if you’re parsing multiple feeds, as I do.
Similar Posts:
- None Found
sounds nice, but i canA?t find the “single line for the template” in the documentaion.
Hello!
I installed WordPress on my server, and set up a site. It’s a relly nice piece of software. However, I am missing a piece of functionality, and
couldn’t find a suitable answer for it. Mayou you know a plugin I could use?I need to automatically inserts ads in my posts.And not AdSense ads, but rather HTML snippets defined by me (affiliate links, etc). Let’s say I would insert a tag in my post:
— ad here —
and the plugin would automatically replace it with some HTML code, when the post is displayed on my site.I really don’t need any fancy configuration options etc, just the basic replace functionality.
Do you know a plugin that can handle this?
[...] i tooled around on my webbie and got the shelf to hide correctly. i attempted to make it do something fancy, but failed. i’ve got an idea how to do what i’m wanting it to do, and i’ll give that a go as soon as dreamhost settles for a bit. when they work, they’re wonderful. they’ve not been working very well though. i found huddled parser , which is another wordpress RSS reader. it reads the two feeds i’ve got that aren’t working just right. i really like the way Fetch looks and works. before i updated my wordpress/moved to dreamhost it would read ATOM feeds. after the switch, it quit. I spent a week trying out different news feed readers that didn’t run from within my webbie, and nothing works as nice as Fetch. the only features it doesn’t have that huddle does is the ability to rename feeds and descriptions. huddle’s output isn’t as easy to read.
[...]