1. 首先在文章中 使用More的代码,插入到你需要的位置。
2. 然后,修改WordPress 里面wp-includes文件夹中的post-template.php文件,使用任何代码编辑器打开,在里面找到以下If 代码:if( preg_match(’//’, $content, $matches) ){
我们需要修改的就第一句话:
$content = explode($matches[0], $content, 2);
if ( !empty($matches[1]) && !empty($more_link_text) )
$more_link_text = strip_tags(wp_kses_no_null(trim($matches[1])));
}if ( preg_match(’//’, $content, $matches ) ){
修改为(粗体字部分):if ( preg_match(’//’, $content, $matches) && !is_feed() ){
如此一来,WordPress的More功能就不会影响到我们RSS的输出了。
转自jooit
2007年7月14日星期六
WordPress 首页摘要而RSS全文输出解决方案
订阅:
博文评论 (Atom)
1 个无聊的人:
我也注册过Wordpress但一直没更新
发表评论