Hack WordPress |
How To: Adding an External RSS Feed to Your WordPress Blog Posted: 12 Dec 2008 02:00 AM CST Have you ever wanted to add an external RSS feed to your WordPress blog? This is a great way to promote one of your other blogs (if it is in a similar niche) on a more popular site you run. Most of you will probably remember that about a month ago we finally got around to launching our WordPress Forums, which has an RSS feed associated with it. In order to cross-promote our forums on this site, I wanted to display our most recent forum posts in the sidebar here at WordPress Hacks. In order to accomplish this, I grabbed the following code from Jean’s post over at Smashing Magazine:
It takes the rss.php file that is built into WordPress (used for widgets). In this code it is set to display the most recent 5 posts from the RSS feed “http://wpforums.com/external.php?type=RSS2.” Here is how it looks: I have gone ahead and added this to our WordPress Code page for easy reference. Related posts: |
You are subscribed to email updates from Hack WordPress To stop receiving these emails, you may unsubscribe now. | Email Delivery powered by FeedBurner |
Inbox too full? Subscribe to the feed version of Hack WordPress in a feed reader. | |
If you prefer to unsubscribe via postal mail, write to: Hack WordPress, c/o FeedBurner, 20 W Kinzie, 9th Floor, Chicago IL USA 60610 |
No comments:
Post a Comment