Displaying RSS Feeds On Wordpress Pages
Written by Joe on February 15, 2008 – 2:04 pm -
Recently I have been working on a large project, BlogSavy, a free blog hosting service. Other than the typical stuff like updating the software to the lastest version of WPMU and getting all the plugins and templates playing nicely with each other, recently there was a forum installed for support. As such, posting updates on both the host’s homepage and in the forum cumbersome, as well as a time waster.
The answer was using RSS from one or the other, and even though Wordpress already has RSS functionality I’d prefer using the blog’s homepage in a static manner and keeping all the info in the phpBB forum. So, a quick search found a quick and dirty simple RSS mod that required no template edits, and am going to use Wordpress’s built in RSS functionality to display this in a blog template.
Regardless of where you generate the RSS feed from, the code to display it will be the same. Since Wordpress already handles imported RSS to display info in the admin panel, we can just tap into that code using a php includes and then use those functions to our liking. So, on any template page (outside of the loop of course), you can throw in this code which can be downloaded in this text file.
Some things to note, you must include the file rss-functions.php before you can use the RSS functions. Change the $url = to your feed url. The variable $href will output the post’s url from the feed, $title would output the post title, and $description would output the post. You can change the number of items feed with $i == 5 to whatever you want it to be. Enjoy.
Posted in Web Development, Wordpress | 18 Comments »

April 25th, 2009 at 3:06 pm
A fantastic read….very literate and informative. Many thanks….where is your RSS button ?
May 1st, 2010 at 5:57 am
Wordpress is the best blogging platform ever. It is much better than Typepad and blogspot.::.
May 5th, 2010 at 6:18 pm
Is there a code snip to change the RSS url by using a selection box in the page the feed will appear? For example, list a few feeds from various sources, and when the selection is made, the RSS url gets updated, and that feed displays.
Of course either a combo box, or short list of radio buttons might be used to select, with a link or button to refresh the page.
Just wondering.
May 14th, 2010 at 5:47 am
i host 5 of my blogs on Blogspot and it is really good for beginners. but if you want something with more features, nothing beats wordpress-.:
May 19th, 2010 at 1:00 am
A very good marketing strategy is very important in promoting your products both online and offline.-,-
May 20th, 2010 at 7:45 pm
RSS Feeds are really very helpful and you could get site and news updates from it.;*’
July 26th, 2010 at 12:19 am
marketing always makes a product more popular and is necessary for its success.*:`
July 28th, 2010 at 5:02 am
RSS feeds are really great because you are always updated with the latest news or blog posts.,~,
August 20th, 2010 at 10:27 am
Nice one… did not know that….anyone has link to other similiar stuff ? thx Mariano
September 14th, 2010 at 11:33 am
RSS feeds are really great if you want to stay updated ;”;
December 14th, 2010 at 2:15 pm
marketing really takes some skill and talent if you want to succced in it “;”
December 22nd, 2010 at 4:02 pm
i think that RSS FEEDS should also be included on the list of the best inventions because it makes life easier for bloggers like us :*”
January 1st, 2011 at 11:45 pm
A fantastic read
January 2nd, 2011 at 12:00 am
A fantastic read
January 2nd, 2011 at 12:09 am
A fantastic read
January 2nd, 2011 at 12:12 am
A fantastic read
January 2nd, 2011 at 6:44 am
A fantastic read
January 4th, 2011 at 6:03 am
A fantastic read