Live RSS Feed page in Wordpress

Iko has an idea of showing Live RSS feeds in Wordpress Pages. Here is my solution to accomplish this task. Wordpress supports Page templates, on which this solution is based.

  1. Locate page.php in your template's direcotory.
  2. Copy the file and rename it to something like rsspage.php, and then open it for editing
  3. Add or modify header comment of the file to:
    
    
  4. Locate the_content() function in the code and insert the following code after it:
    items, 0, $maxitems);
      }
    ?>
    
    
      
    
      
    
    
  5. Save rsspage.php into your template directory
  6. Create new page in Wordpress: Write->Page and change Page Template to RSS Page from the right column.
  7. Save the page
  8. Go to Manage -> Pages and Edit the page You just created.
  9. Scroll to the bottom and add new field in Custom Fields named RSS with the RSS feed, You want to show as value. Click Add Custom Field and then Publish the page

That’s all.

The Main code section is provided by Iko

Note! The Create -> Edit procedure is required due to bug in Wordpress 2.3.1

Live examples can be found here and here.

Comments

comments powered by Disqus