wordpress的新闻聚合
插件以及自动更新
现在的xml news aggregator很多,现在比较多的有lilina和planet。
国内有很多人都用lilina制作了自己的xna,同时为了解决lilina的速度做了一些更改,但还是不能另人满意。而planet的主机要求比较严格,多方寻找都没找到合适的主机。
为了解决这个问题,我使用了feedwordpress和wp-cron和WP-Cron FeedWordpress Update配合,实现了rss自动抓取。
feedwordpress和wp-cron的安装都很简单直接copy到plug-in里面在插件里激活就可以了。
而为了让feedwordpress实现自动更新,可以用wp-cron。
wp-cron-feedwordpress.php文件为:
< ?php
/*
Plugin Name: WP-Cron FeedWordpress Update
Plugin URI: http://itslife.net/blog/?p=7
Description: regularly refresh your links:requires WP-Cron and FeedWordpress.hack from wp-cron-feedonfeeds.
Version: 1.1
Author: houxs
Author URI: http://itslife.net
*/
addaction(‘wpcron15’, ‘wpcronupdatelinks’);
function wpcronupdatelinks() {
if ( getoption(‘uselinksupdate’) )
includeonce(ABSPATH . ‘wp-content/update-feeds.php’);
}
?>
把wp-cron-feedwordpress.php也copy到plugin里面,激活。
现在只要把你链接里的blog的rss地址写好,然后在选项里对Syndication设置就可以了
转自:
http://www.itslife.net/blog/?p=4