Best Grunge-Style WordPress Themes SEO WordPress Theme Gallery
Dec 03

The problem. Do you have more than one blog, or do you manage a forum? If so, you may want to be able to display any RSS feed on your WordPress blog.

The solution. Many plug-ins can do the job, but they’re not necessary at all. WordPress has a built-in RSS reader that is used, for example, to display news on your dashboard. All you have to do is use it in your theme.

  1. Paste the following code anywhere in your theme (personally, I’d put it in the sidebar, the footer or, even better, the page template):
    1. <?php include_once(ABSPATH.WPINC.‘/rss.php’);
    2. wp_rss(‘http://feeds.feedburner.com/wprecipes’, 3); ?>
  2. Save it and you’re done. It’s as easy as that!

Code explanation. The first thing we have done is include the rss.php file from WordPress core. This file allows us to use the wp_rss() function, which takes two parameters: the first is the RSS feed’s URL, and the second is the number of RSS entries to be displayed.

Sources

Leave a Reply

Computers (Linux) - TOP.ORG TOP WEB ROMANIA Page Rank Check web2blue
Promovare-online.com Link Directory - Get a Higher PageRank Dmegs Web Directory
Data Recovery File Recovery Outlook Repair Company-List Business Directory Computer Directory Dating Directory Hard Drive Recovery Finance Directory RAID Recovery Used Dodge List Nation Internet Privacy Internet Marketing Shopping Directory Software Directory Decks Travel Catalog & Directory Undelete Free Web Hosting Used Cars Zip Codes Celebrity Pictures Data Recovery Automotive News Renovations Weight Loss