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.
November 21st, 2008 at 10:56 am
Or you could just use the RSS sidebar widget . . . if you’re into those.
November 21st, 2008 at 10:19 pm
i dont really do widgets.