How To Display External RSS Feeds
December 25th, 2009 By WP Tricks Posted in Tricks
On our recent post, we have write about WordPress Feed Tricks, Right now we will do something else. Sometime we have another useful resource about our blog, some of them really interesting and we need to put the content on Sidebar. With little bit code and tweak, we can made it on our WordPress. How To Display External RSS Feeds on our WordPress is easy.
There are so many method to display External Feeds, we can using RSS Widget, or write our own code. On this tips, we use some WordPress functions and make it smoothly on our WordPress
The first time is open sidebar.php (if you want display external RSS content on your sidebar) and write this code below
<?php
require_once (ABSPATH . WPINC . '/rss-functions.php');
// here's where to insert the feed address
$rss = @fetch_rss('http://feeds2.feedburner.com/WPGPL');
if ( isset($rss->items) && 0 != count($rss->items) ) {
?>
<?php
// here's (5) where to set the number of headlines
$rss->items = array_slice($rss->items, 0, 30);
foreach ($rss->items as $item ) {
?>
<li> <a href='<?php echo wp_filter_kses($item['link']); ?>'> <?php echo wp_specialchars($item['title']); ?></a> <span class="sdate"><?php echo wp_specialchars($item['description']); ?></span> </li>
<?php } ?>
<?php } ?>
Please note, you need replace RSS feed source with your own resource and save than check on your own blogs. In our example, you can check on our sidebar, don’t forget to subscribe our post. If you have little bit knowledge on CSS and XHTML you can make it more fancy layout.
How To Display External RSS Feeds On The NET
Display External RSS Feeds
Ingleside at Rock Creek. Washington DC active adult retirement community. Independent living, assisted living, health-wellness programs and fine amenities. read more
Source: http://www.inglesideatrockcreek.org/c5/Display-External-RSS-Feeds.htm
How To Display External RSS Feeds # WordPress Tricks & Tips
On our recent post, we have write about WordPress Feed Tricks, Right now we will do something else. Sometime we have another useful resource about our blog, read more
Source: http://wptricks.net/how-to-display-external-rss-feeds-on-wordpress/
Display External RSS Feeds › WordPress Vote
There are so many method to display External Feeds, On this tips, use some WordPress functions and make it smoothly on in WordPress, You ... read more
Source: http://wpvote.com/2010-02/wordpress-tutorials/display-external-rss-feeds/
External Relations RSS Feeds
External Relations RSS Feeds: What is RSS ? An 'RSS feed' or ... Where do I find a RSS reader? Some of the latest versions of internet browsers are able to display RSS feeds correctly. read more
Source: http://ec.europa.eu/external_relations/relex_rss_en.htm
How to Import and Display RSS Feeds in WordPress • Perishable Press
Three powerful and flexible ways to fetch, parse, cache, and display your external RSS and Atom feeds on your WordPress-powered website.. read more
Source: http://perishablepress.com/press/2009/04/26/import-and-display-rss-feeds-in-wordpress/
Amazing Touch
Hey, thanks for this. I was searching for this particular thing. I wanted to display news feeds on my blog. Thanks once again.
You are welcome Sharath
Thanks for the scripts. Now I don’t have to use widgets to display external rss feeds.
thanks for this nice tut but i need simple and php code that not use any external include file.
Does anybody know how to add a custom field to the section where the url is at. I want to be able to add diffrent urls to each single page through custom fields. Thanks
can you tell me how to add rss feed in to wordpress page?
wow, works perfectly. Thank you so much!