PHP Magic Book – Free PHP Scripts, Tutorials and Downloads, PHP AtoZ Reloaded, free php tutorials, free php downloads, php scripts, PHP tips

Display RSS Feed From Any Blog on Your WordPress Blog

Ever wanted to display any rss feed from any other blog on your WordPress blog? WordPress have a function, called wp_rss(), which is a built-in rss reader.

Add the following code where you want the rss to be displayed at your blog i.e. sidebar or footer:

<?php include_once(ABSPATH . WPINC . '/rss.php');
wp_rss('http://feeds.feedburner.com/phpmagicbook', 7); 
?>

We just included the rss.php file, which is a part of WordPress core.
This file allows us to use the wp_rss() function.

wp_rss() function takes two parameters:
The first is the rss feed url
The second is the number of rss entries to be displayed

How simple is that!

  • Share/Bookmark
Tags: ,
Posted in: Hacks, WordPress
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0

Related Posts




2 Responses to “Display RSS Feed From Any Blog on Your WordPress Blog”

  1. Feb 15, 2009
    Raza Says:

    Really amazing. WordPress rocks.

  2. Feb 15, 2009
    Zeus Says:

    Very nice.

Post a Comment

  Subscribe Via RSS
  Subscribe Via Email