PC Optimizer PRO - Fix PC Errors, Optimize XP/Vista Performance Up To 300%
Spyware Doctor with AntiVirus - Easy Spyware Removal - FREE SCAN
How to fetch RSS feed into your wordpress blog?

In this example i will show you how to fetch 10 RSS feed into your wordpress blog from other websites. It is very easy to add rss feed to your wordpress blog.
<h2><?php _e('RSS Latest News Headlines'); ?></h2>
<?php
include_once(ABSPATH . WPINC . '/rss.php');
$rss = fetch_rss('http://blog.grand-alliance.com/feed/');
$maxitems = 10;
$items = array_slice($rss->items, 0, $maxitems);
?>
<ul>
<?php if (empty($items)) echo '<li>No news</li>';
else
foreach ( $items as $item ) : ?>
<li><a href='<?php echo $item['link']; ?>’
title=’<?php echo $item['title']; ?>’>
<?php echo $item['title']; ?>
</a></li>
<?php endforeach; ?>
</ul>
Popularity: 4%
Tags: blog, feedburner, fetch-rss, retrieve-rss-feed, rss-feed, WordPress
November 12, 2007 | Filed Under WordPress
Highly Recommended
Related Posts:
Serious Security Issue in WordPress (Version 2.3.x)
How to optimize your blog?
Be Careful When Installing WordPress Plugins
Always use Akismet wordpress plugin to fight spam
How to Upgrade to Wordpress 2.5.1
Google PageRank 0 jump to 4 using Wordpress Blog
Successfully Upgraded to Wordpress 2.5.1
How to get high Page Rank for your WordPress blog
Wordpress Error - MySQL server has gone away
Build traffic and link popularity with WordPress Trackback system
Comments
Leave a Reply











