近日,有站长咨询关于PHPCMS 2008 RSS订阅不更新的问题,经过查发现了解决方法,如下,共修改2个位置:
1.rss.php文件查找
$sql = "SELECT `title`,`description`,`url`,`inputtime`,`thumb`,`keywords` FROM ".DB_PRE."content WHERE `status` = ’99’ ORDER BY `catid` DESC LIMIT 0,20";
改成
$sql = "SELECT `title`,`keywords` FROM ".DB_PRE."content WHERE `status` = ’99’ ORDER BY `contentid` DESC LIMIT 0,20";
2.RSS.php继续查找
$sql .= " ORDER BY `catid` DESC LIMIT 0,20";
改成
$sql .= " ORDER BY `contentid` DESC LIMIT 0,20";