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 magpierssUpload 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 > Reading
WordPress installation, and setgo to Settings > Reading. Change the value for Syndication feeds show the most recent
Syndication feeds show the most recent. DefaultThe default is 10 most recent posts.