七月 13th, 2007
定制 Dashboard 中的 3 个 Feeds
Category: WordPress, Author: Nicky, Popularity: 8%
从 WordPress 2.1 开始,Dashboard 中的 RSS 聚合采用了异步读取方式,加快了后台的打开速度。Dashboard 中的这三个 RSS 分别是 Technorati 反向链接、WordPress 开发 Blog、WordPress Planet。这几个 RSS 我都在 Google Reader 中订阅了,不需要打开 WordPress 后台的时候看到,你可以修改为自己喜欢的内容,或者和我一样,把他们删除掉。现在要定制它们很简单,全部在 wp-admin/index-extra.php 文件中。
以下为 WordPress 2.2.1,其他版本应该在差不多的位置。
1、Technorati 反向链接,找到第 10 行:
$rss = @fetch_rss('http://feeds.technorati.com/cosmos/rss/?url='. trailingslashit(get_option('home')) .'&partner=wordpress');
2、WordPress 开发 Blog,找到第 27 行:
$rss = @fetch_rss('http://wordpress.org/development/feed/');
3、WordPress Planet,找到第 46 行:
$rss = @fetch_rss('http://planet.wordpress.org/feed/');
如果不想显示这些 Feeds,那么只需要在行首用 # 注释掉就可以了。 Tags:WordPress.
评论数量(4) | Add Comments
本文网址:http://www.osxcn.com/wordpress/custom-dashboard.html

