StudioPress Themes
WordPress Forums

Go Back   WordPress Forums > WordPress Support > WordPress How-To Tutorials & Hacks

Reply
  #1 (permalink)  
Old 12-24-2008
KyleEslick's Avatar
WP Forums Administrator
 
Join Date: Nov 2008
Location: Des Moines, IA
Posts: 212
Default Manually Adding an RSS Feed to Your WordPress Blog

Did you guys see JBJ's post over at Smashing Magazine, which included 10 useful RSS WordPress hacks?

I wanted to mention it here and draw your attention to my favorite hack! The hack I'm speaking of is of course to add an RSS feed to your blog. Obviously this feature is available already if you use widgets, but what if you want to place it somewhere besides the sidebar/footer?

Here is the code you can use (using the WP Forums feed for example):

Code:
<?php include_once(ABSPATH.WPINC.'/rss.php');
wp_rss('http://wpforums.com/external.php?type=RSS2', 5); ?>
You can of course replace the WP Forums feed with the feed you want to display. The 5 can be changed to the number of recent posts you want to display.
__________________
~[WPForums.com Administrator ]~


To view links or images in signatures your post count must be 10 or greater. You currently have 0 signatures.
- WordPress Theme & Plugin Reviews, Hacks, Guides, and Tutorials

To view links or images in signatures your post count must be 10 or greater. You currently have 0 signatures.
- WordPress Link & Resource Directory
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:37 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.0