dede:tag标签里调用每个标签包含有几个所属文档数,例如我的
https://www.dedesos.com/tags.html
实现教程打开 /include/taglib/tag.lib.php 找到
$row['highlight'] = 0;
在它下面加入
$count = $dsql->GetOne("SELECT COUNT(tid) FROM `dede_taglist` WHERE tag = '".$row['tag']."'");
$row['count'] = $count['count(tid)'];
{dede:tag row='500' sort='new' getall='0'}
<li><a href=http://www.dede58.com/"[field:link/]" title="[field:tag /]">[field:tag /]</a><span>([field:total /])</span></li>
{/dede:tag}
文档数:[field:total /]