修改方法:打开/include/taglib/tag.lib.php文件找到 $row[link] = $cfg_cmsurl./tags.php?/.urlencode($row[keyword])./; 在此代码下边添加 $count = $dsql-GetOne(Select count(tid) From `dede_taglist` where tag = .$row[tag].);$row[
$row['link'] = $cfg_cmsurl."/tags.php?/".urlencode($row['keyword'])."/";
在此代码下边添加
$count = $dsql->GetOne("Select count(tid) From `dede_taglist` where tag = '".$row['tag']."'"); $row['count'] = $count['count(tid)'];
***新tag标签调用示例
{dede:tag row='60' sort='new'} <a href='[field:link/]' title="[field:tag /]" >[field:tag /]([field:count/])</a> {/dede:tag}