加入收藏 | 设为首页 | 会员中心 | 我要投稿 丽水站长网 (https://www.0578zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 运营中心 > 建站资源 > 经验 > 正文

PHPCMS搜寻模块内容排序

发布时间:2021-12-18 12:36:45 所属栏目:经验 来源:互联网
导读:打开phpcms/modules/search/index.php 找到$data = $this-content_db-select($where, *); 修改为 $data = $this-content_db-select($where, *,,intputtime DESC); 这样就是按照发布时间排倒序了.
打开phpcms/modules/search/index.php 找到$data = $this->content_db->select($where, '*');
 
修改为 $data = $this->content_db->select($where, '*','','intputtime DESC'); 这样就是按照发布时间排倒序了.

(编辑:丽水站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读