Display wordpress post to static website in the footer

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.