How to: Display any rss feed on your WordPress blog【Z】
Posted on | 十一月 27, 2009 | 1 Comment
Here’s the simple code to add where you want the rss to be displayed (Personally, I’d use my sidebar, my footer or a page template):
<?php include_once(ABSPATH . WPINC . '/rss.php');
wp_rss('http://feeds.feedburner.com/wprecipes', 3); ?>
Let’s have a quick look to the code: First, we’re including the rss.php file, which is a part of WordPress core. This file allows us to use the wp_rss() function.
This function takes two parameters: The first is the rss feed url, and the second is the number of rss entries to be displayed.
If you enjoyed this article, please consider sharing it!
相关文章:
- 啊~Asaph, Setting up your own FFFFound
- How to: Create and use WordPress page templates
- 7 Must Have WordPress Plugins For Every Blog
- 10 tips to make more money fromWP
- 优化你的 WordPress 之精简 HTML 代码(进阶篇)
评论|Comments
One Response to “How to: Display any rss feed on your WordPress blog【Z】”
留言|Leave a Reply
![如果您自认为是一位忠实的Silverlight-Fans,那么请将此标志放到您的博客中成为一名真正的[银光使者]](http://images.cnblogs.com/cnblogs_com/alamiye010/Silverlighter1.jpg)
十一月 27th, 2009 @ 08:51
http://warptencq.cn/asaph/feed
< ?php include_once(ABSPATH . WPINC . '/rss.php');
wp_rss('http://warptencq.cn/asaph/feed', 3); ?>