Including RSS in WordPress by eckert


It’s really easy to do, thanks to WP’s preset rss.php file.

Somewhere in your code (sidebar.php, single.php, etc…) just put this code

<?php
include_once(ABSPATH . WPINC . '/rss.php');
wp_rss('http://yourdomain.com/feed/rss', 5);
?>

You will need to replace the “yourdomain” with the actual url of the RSS feed you are wanting to pull into your site.

Currently, the number of posts is set to 5, but you can change that number to anything you want.

To change the style of the output, modify your rss.php file in the wp-includes folder.  Scroll all the way to the bottom and do what you do.

Tags: , ,

2 Responses to “Including RSS in WordPress”

  1. Lloyd Armbrust Says:

    Or you could just use the RSS sidebar widget . . . if you’re into those.

  2. eckert Says:

    i dont really do widgets.

Leave a Reply


It’s Called Web Design is sponsored by Seeing Interactive and powered by WordPress
Entries (RSS) and Comments (RSS).
53 queries. 0.303 seconds.