Most Popular Downloads
MP3 Download Box - Download Unlimited MP3 Legally. As low as $1/month
PC Optimizer PRO - Fix PC Errors, Optimize XP/Vista Performance Up To 300%
Spyware Doctor with AntiVirus - Easy Spyware Removal - FREE SCAN

http://www.pctools.com/internet-security/

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%

Please Share and Bookmark :)
  • del.icio.us
  • StumbleUpon
  • Technorati
  • Reddit
Tags: blog, feedburner, fetch-rss, retrieve-rss-feed, rss-feed, WordPress

Highly Recommended


AVAFX

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





*HOT!* Reverse Phone Detective *HOT!*
Find out the owner of any cell phone or unlisted number.
Results include name, address, location, etc.


Ex: 555-555-5555




*Today's Hot Item!*


AVAFX