Search engines attach great importance to TAG. The inclusion of website tag pages can also bring traffic. Solving the problem of sorting the DedeCms TAG list by the latest release time can effectively provide the latest TAG to users and search engines.

Modification method:

Open the/include directory to find the arc.taglist.class.php file, and find the code:

$this->dsql->SetQuery("Select aid From `dede_taglist` where tid =
'{$this->TagInfos['id']}' And arcrank>-1 limit $limitstart,$getrow");

Revised as:

$this->dsql->SetQuery("Select aid From `dede_taglist` where tid =
'{$this->TagInfos['id']}' And arcrank>-1 order by aid desc limit $limitstart,$getrow ");

This is OK.

Note: The earlier version of dede_taglist is dede_taglist. After modification, the tag list will be arranged according to the latest release time of the article.

Post reply

Can't comment until