Typecho 显示某个标签数量
No Reply , Posted in 代码 on September 11, 2014
做主题有些人可能需要标签后面显示这个标签出现了几次
代码如下:
<?php $this->widget('Widget_Metas_Tag_Cloud', 'ignoreZeroCount=true&limit=30') ->parse('<a href="{permalink}" class="tag-link-{count}" title="{count}个话题" style="font-size: 14px;">{name} ({count})</a>'); ?>
其中:
{count}
count — 计算数组中的单元数目或对象中的属性个数