News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Rob Allen's Blog:
Displaying an RSS feed in WordPress
January 04, 2011 @ 10:03:52

Rob Allen has posted a method he's come up with for displaying an RSS feed right in with the rest of the content of your WordPress blog. The key is in the simplicity of the MagpieRSS library.

My wife decided that she wanted to display a list of her latest AudioBoos in the sidebar of her blog. She looked at the AudioBoo JavaScript widget but decided it wasn't subtle enough and so she enlisted me to solve her problem. It turns out that AudioBoo has an RSS feed, so a simple plugin was required. I had a quick look on the extension site, but most are now "widgets" which her theme isn't set up for or didn't provide an unsigned list. Hence, I whipped up a small extension for her.

With the help of Magpie, a simple call to "fetch_rss" was all it took to pull in the AudioBoo RSS feed and a bit of PHP to loop through it and pull out the relevant bits. They're all displayed in a simple list - you can see it in action on her blog (look for the "Audioboo Updates" section).

0 comments voice your opinion now!
rss feed wordpress magpierss library tutorial


blog comments powered by Disqus

Similar Posts

Gonzalo Ayuso: Sending Android Push Notifications from PHP to phonegap applications

NETTUTS.com: Online File Storage with PHP

Zend Developer Zone: Migrating applications from PHP 4 to Zend Core 2.5 w/support for IBM Informix

Jani Hartikainen's Blog: Zend_Acl part 2: different roles and resources, more on access

Dougal Campbell's Blog: WordPress as a Forum?


Community Events





Don't see your event here?
Let us know!


experience introduction community unittest refactor framework list developer release laravel opinion interview series threedevsandamaybe language configure testing podcast install code

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework