I am a totally fresh with wordpress I have this website : http://www.raminusa.com/ in footer there is a column name "Popular Link" and I want to replace it with Recent News that I will do but below this heading I need my first 5 or 4 recent post from my wordpress blog.
My wordpress blog is : http://immigrationstatus.wordpress.com
I do not know how is it possible can some one help me with this.
Here is the code I used:
<?php
$url = "http://immigrationstatus.wordpress.com/rss2/";
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>