默认的TAG标签调用Zui老的放在前面。修改代码通过ID去排序,按新发布时间排序,把Zui的TAG提供给用户和搜索引擎。
打开/include/arc.taglist.class.php文件新增代码order by aid desc
找到
$this->dsql->SetQuery("Select aid From `dede_taglist` where tid = '{$this->TagInfos['id']}' And arcrank>-1 limit $limitstart,$getrow");
改成
$this->dsql->SetQuery("Select aid From `dede_taglist` where tid = '{$this->TagInfos['id']}' And arcrank>-1 order by aid desc limit $limitstart,$getrow");
修改参考:
dede58 http://www.dede58.com/a/dedejq/8848.html
格展网络https://www.91084.com/dedecms/az/1037.html