Skip to main content
After a brief chat with Original Poster, the following solution works
Source Link
Marc Dingena
  • 1.1k
  • 1
  • 10
  • 22

Your WordPress installation comes with an RSS Feed. From any other website you can tap into this feed to extract the latest information of that Blog. I do believe that this method has a 12 or 24 hour delay. So the RSS Feed in this method is only updated once or twice per day. Meaning if you postEDIT After a new post on your WordPress sitebrief chat with Original Poster, it can take up to 12 hours before the latest item is added to your footer on the other site.following solution works:

  • Install the Magpie RSS library.

  • Create a folder in the root directory of raminusa.com, name it magpierss

  • Upload 4 files (rss_fetch.inc, rss_parser.inc, rss_cache.inc, and rss_utils.inc), and the directory extlib to this new folder

On your other siteIn the footer script of raminusa.com (which should be in the same directory as the newly created magpierss folder), add this code to your footerthe following script.

<?php 
    $url = "http://exampleimmigrationstatus.wordpress.com/rss/feed/url/goes/here";";
    require_once(ABSPATH . WPINC . ''magpierss/rss-functionsrss_fetch.php'inc');
    $rss = fetch_rss($url);
?>
<ul class="footer-links">
    <?php
                if($rss) {
                        foreach ($rss->items as $item ) {
                                $link = $item['link'];
                                $title = $item['title'];
                                echo '<li><a href="' . $link . '" title="' . $title . '">' . $title . '</a></li>';
                        }
                } else {
                        echo '<li>Sorry, RSS Feed could not be loaded</li>';
                }
    ?>
</ul>

Be default, your RSS Feed URL is simply your Blog's base URL, followed by /feed

You could alter the foreach loop to limitTo change the numberamount of links presented. The easiest way, thoughshown, is to go to your WordPress Settings > ReadingWordPress installation, and setgo to Settings > Reading. Change the value for Syndication feeds show the most recentSyndication feeds show the most recent. DefaultThe default is 10 most recent posts.

Your WordPress installation comes with an RSS Feed. From any other website you can tap into this feed to extract the latest information of that Blog. I do believe that this method has a 12 or 24 hour delay. So the RSS Feed in this method is only updated once or twice per day. Meaning if you post a new post on your WordPress site, it can take up to 12 hours before the latest item is added to your footer on the other site.

On your other site, add this code to your footer

<?php 
    $url = "http://example.com/rss/feed/url/goes/here";
    require_once(ABSPATH . WPINC . '/rss-functions.php');
    $rss = fetch_rss($url);
?>
<ul class="footer-links">
    <?php
        foreach ($rss->items as $item ) {
            $link = $item['link'];
            $title = $item['title'];
            echo '<li><a href="' . $link . '" title="' . $title . '">' . $title . '</a></li>';
        }
    ?>
</ul>

Be default, your RSS Feed URL is simply your Blog's base URL, followed by /feed

You could alter the foreach loop to limit the number of links presented. The easiest way, though, is to go to your WordPress Settings > Reading and set the value for Syndication feeds show the most recent. Default is 10 posts.

EDIT After a brief chat with Original Poster, the following solution works:

  • Install the Magpie RSS library.

  • Create a folder in the root directory of raminusa.com, name it magpierss

  • Upload 4 files (rss_fetch.inc, rss_parser.inc, rss_cache.inc, and rss_utils.inc), and the directory extlib to this new folder

In the footer script of raminusa.com (which should be in the same directory as the newly created magpierss folder), add the following script.

<?php
    $url = "http://immigrationstatus.wordpress.com/feed/";
    require_once('magpierss/rss_fetch.inc');
    $rss = fetch_rss($url);
?>
<ul class="footer-links">
    <?php
                if($rss) {
                        foreach ($rss->items as $item ) {
                                $link = $item['link'];
                                $title = $item['title'];
                                echo '<li><a href="' . $link . '" title="' . $title . '">' . $title . '</a></li>';
                        }
                } else {
                        echo '<li>Sorry, RSS Feed could not be loaded</li>';
                }
    ?>
</ul>

To change the amount of links shown, go to your WordPress installation, and go to Settings > Reading. Change the value for Syndication feeds show the most recent. The default is 10 most recent posts.

added 52 characters in body
Source Link
Marc Dingena
  • 1.1k
  • 1
  • 10
  • 22

Your WordPress installation comes with an RSS Feed. From any other website you can tap into this feed to extract the latest information of that Blog. I do believe that this method has a 12 or 24 hour delay. So the RSS Feed in this method is only updated once or twice per day. Meaning if you post a new post on your WordPress site, it can take up to 12 hours before the latest item is added to your footer on the other site.

On your other site, add this code to your footer

<?php 
    $url = "http://example.com/rss/feed/url/goes/here";
    require_once(ABSPATH . WPINC . '/rss-functions.php');
    $rss = fetch_rss($url);
?>
<ul class="footer-links">
    <?php
        foreach ($rss->items as $item ) {
            $link = $item['link'];
            $title = $item['title'];
            echo "<li><a'<li><a href='"href="' .$item['link'] $link ."' title='"'" title="' .$item['title']" $title .'>" '">' .$item['title'] $title ."< '</a></li>";li>';
        }
    ?>
</ul>

Be default, your RSS Feed URL is simply your Blog's base URL, followed by /feed

You could alter the foreach loop to limit the number of links presented. The easiest way, though, is to go to your WordPress Settings > Reading and set the value for Syndication feeds show the most recent. Default is 10 posts.

Your WordPress installation comes with an RSS Feed. From any other website you can tap into this feed to extract the latest information of that Blog. I do believe that this method has a 12 or 24 hour delay. So the RSS Feed in this method is only updated once or twice per day. Meaning if you post a new post on your WordPress site, it can take up to 12 hours before the latest item is added to your footer on the other site.

On your other site, add this code to your footer

<?php 
    $url = "http://example.com/rss/feed/url/goes/here";
    require_once(ABSPATH . WPINC . '/rss-functions.php');
    $rss = fetch_rss($url);
?>
<ul class="footer-links">
    <?php
        foreach ($rss->items as $item ) {
            echo "<li><a href='".$item['link']."' title='".$item['title']".'>".$item['title']."</a></li>";
        }
    ?>
</ul>

Be default, your RSS Feed URL is simply your Blog's base URL, followed by /feed

You could alter the foreach loop to limit the number of links presented. The easiest way, though, is to go to your WordPress Settings > Reading and set the value for Syndication feeds show the most recent. Default is 10 posts.

Your WordPress installation comes with an RSS Feed. From any other website you can tap into this feed to extract the latest information of that Blog. I do believe that this method has a 12 or 24 hour delay. So the RSS Feed in this method is only updated once or twice per day. Meaning if you post a new post on your WordPress site, it can take up to 12 hours before the latest item is added to your footer on the other site.

On your other site, add this code to your footer

<?php 
    $url = "http://example.com/rss/feed/url/goes/here";
    require_once(ABSPATH . WPINC . '/rss-functions.php');
    $rss = fetch_rss($url);
?>
<ul class="footer-links">
    <?php
        foreach ($rss->items as $item ) {
            $link = $item['link'];
            $title = $item['title'];
            echo '<li><a href="' . $link . '" title="' . $title . '">' . $title . '</a></li>';
        }
    ?>
</ul>

Be default, your RSS Feed URL is simply your Blog's base URL, followed by /feed

You could alter the foreach loop to limit the number of links presented. The easiest way, though, is to go to your WordPress Settings > Reading and set the value for Syndication feeds show the most recent. Default is 10 posts.

Source Link
Marc Dingena
  • 1.1k
  • 1
  • 10
  • 22

Your WordPress installation comes with an RSS Feed. From any other website you can tap into this feed to extract the latest information of that Blog. I do believe that this method has a 12 or 24 hour delay. So the RSS Feed in this method is only updated once or twice per day. Meaning if you post a new post on your WordPress site, it can take up to 12 hours before the latest item is added to your footer on the other site.

On your other site, add this code to your footer

<?php 
    $url = "http://example.com/rss/feed/url/goes/here";
    require_once(ABSPATH . WPINC . '/rss-functions.php');
    $rss = fetch_rss($url);
?>
<ul class="footer-links">
    <?php
        foreach ($rss->items as $item ) {
            echo "<li><a href='".$item['link']."' title='".$item['title']".'>".$item['title']."</a></li>";
        }
    ?>
</ul>

Be default, your RSS Feed URL is simply your Blog's base URL, followed by /feed

You could alter the foreach loop to limit the number of links presented. The easiest way, though, is to go to your WordPress Settings > Reading and set the value for Syndication feeds show the most recent. Default is 10 posts.