Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of sorting the list of dream-weaving TAG tags according to the latest release time

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the method of sorting the dream TAG tag list according to the latest release time, which has certain reference value, and friends who need it can refer to it. I hope you all have a lot to gain after reading this article. Let's take a look at it together.

How do you sort the list of tags by the latest release time?

Nowadays, search engines attach great importance to TAG, and solve the problem of Dream Weaving CMS(DedeCms)TAG list sorting by the latest release time, which can effectively provide the latest TAG to users and search engines.()

Solution:

Find the/include/arc.taglist.class.php file (approximately 313 lines) and look for the code:

$this->dsql->SetQuery("SELECT aid FROM `dede_taglist` WHERE tid = '{$this->TagInfos['id']}' AND arcrank>-1 LIMIT $limitstart,$getrow");

Amend to read:

$this->dsql->SetQuery("SELECT aid FROM `dede_taglist` WHERE tid = '{$this->TagInfos['id']}' AND arcrank>-1 order by aid desc LIMIT $limitstart,$getrow");

Note: Earlier versions of dede_taglist were dede_taglist. After modification, the TAG list will be arranged according to the latest publication time of the article.

Thank you for reading this article carefully. I hope Xiaobian can share the method content of weaving dream TAG tag list sorted by the latest release time. At the same time, I hope everyone will support it a lot. Pay attention to the industry information channel and find out if you encounter problems. Detailed solutions are waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 243

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report