Integrating RSS feeds into your website…
Targeting users to read about your company can be a difficult proposition. Customers usually just want to know what you can provide and how you can help them. If they are not immediately interested or captivated, it is more likely than not that they will leave and not return.
By integrating a blog feed into the pages of my website I hope to coax my customers and readers into wanting to know more and therefore feel like they are closer to the company. This can make customers more loyal.
Blog software is so user friendly that it already provides the facility to enable its readers to subscribe to an RSS feed - but normal websites dont have an immediate avenue to integrate that feed and maximize its benefit. After all - it is highly likely that the people visiting my website will be the people that will be interested in how it was created, as it is a Holdings company and doesnt really provide much value.
By doing a quick search of google I can find just a couple of good, php based, RSS feed parsers available :
I only mention the php based parsers as this is what is currently relevant to me. If anyone wishes me to conduct a more thorough investigation - just let me know.
I decided to work with the Simplepie RSS parser to integrate my blog feed into the www.mcnicholl.com website.
Lets get to the coding :
require 'location of directory/simplepie.inc';
$in_feed = new SimplePie();
$in_feed->cache_location(location of cache directory);
$in_feed->feed_url(link to the feed);
// now simply initiate the feed
$in_feed->init();
Thats practically all you have to do. The $in_feed variable now holds the rss feed. It is truely very simple with SimplePie.
In order to print out each post in the feed you could just create a for loop and print them out with the following functions :
- get_feed_link();
- get_feed_title();
- get_item_quantity();
- get_item();
- get_permalink();
- get_title();
- get_description();
- get_date();
…and that is only the functions that I currently know.
In the future I plan to create a simple drop in - no programming rss feed parser for any website. All the user will have to do is include the RSS feed link. I’ll update everyone here when this is available.







on March 21st, 2007 at 2:51 pm
[...] Integrating RSS feeds into your website… [...]
on April 30th, 2007 at 1:56 am
Wanted to compliment on your site, it looks really good .
Hank
on June 2nd, 2007 at 4:55 pm
[...] Integrating RSS feeds into your website… [...]
on January 16th, 2008 at 11:09 am
I have an intranet in my office. I want to integrate RSS feeds from one intranet site onto another site. How do I do it? We need username & password to login to this intranet. Please advise. Thanks.
on February 27th, 2008 at 11:40 am
I have 2 sites on intranet (which requires username & password). Site 1 offers RSS feeds and I want to display these feeds on Site 2. How do I do so?