Skip to content

How do we embed an RSS (or XML) feed into our web site?

5 Comments

  1. MADHAV wrote:

    Hey buddy, use PHP to have good balance with the script

    Thats your code down there:

    <?php
    //—Code to display RSS feeds using MagpieRSS
    include "magpierss/rss_fetch.inc"; //include the magpierss script
    define(‘MAGPIECACHEDIR’, ‘/tmp/magpie_cache’);
    $url = ‘http://www.YOUR-SITE.com/rss.php’; //this is the url of the feed, enter your own url here
    $rss = fetch_rss( $url );

    $output = ‘<a target="_new" href="http://www.articletrader.com">Articles From ArticleTrader</a><br><br>’;
    for ($i = 0; $i < sizeof($rss->items); $i++){
    $output .= ‘<a target="_new" href="’.$rss->items[$i]['link'].’">’.$rss->items[$i]['title'].’</a><br>’;
    $output .= $rss->items[$i]['description'].’<br><br>’;
    }
    echo $output;
    //–
    ?>

    Monday, February 8, 2010 at 11:22 pm | Permalink
  2. dhodg777 wrote:

    use iWeb (if u have a mac)

    Monday, February 8, 2010 at 11:22 pm | Permalink
  3. Krazy K wrote:

    Go to the web page that you want to add as a feed
    RIGHT click on the RSS symbol that is on the page
    select copy shortcut on the pop-up window
    then go to the web site where you want to add it
    paste it where it needs to go
    save your changes and refresh your page
    and it should be there, if not give it about 24 hours
    and see if it had a time delay.

    Monday, February 8, 2010 at 11:22 pm | Permalink
  4. John J wrote:

    I believe you want to create an RSS feed for your site that others can download. To do that all you need to do is create an RSS feed (specs found at http://blogs.law.harvard.edu/tech/rss ) and link to it from your site.

    If you want to include another site’s RSS feed in yours it will depend on what sort of back end you have access to (if any). Most of the time you should be able to find an embed-able reader by doing a google search and include the back end (or javascript if that is all you have) as part of the search – http://www.google.com/search?q=javascript+rss+reader&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-US:official

    Monday, February 8, 2010 at 11:22 pm | Permalink
  5. Nookey™ wrote:

    To embed RSS feed on any of your web, you have to copy the RSS shortcut of the webpage you wanna embed on your website.
    Right click on the orange button (from the site you wanna embed) select "Copy Shortcut", this will copy the RSS address of that page and now you have to just paste this URL on the
    <a href=
    section of your website’s source code.

    Monday, February 8, 2010 at 11:22 pm | Permalink

Post a Comment

Your email is never published nor shared.