织梦DedeCMS TAG列表按最新发布时间排序修改方法

搜索引擎对TAG十分重视,我们自己做的tag页面被收录的也有不少,也能带来些流量,织梦官方文件存在某些问题,我们现在去解决织梦TAG列表按最新发布时间排序,可以有效把最新的TAG提供给用户和搜索引擎。

解决方法

在/include目录下找到arc.taglist.class.php文件

查找代码:

$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 ");

完成可以去刷新下TAG列表看下排序

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。