Typecho 全部标签列表 - 按文章数量排序

No Reply , Posted in 代码 on April 16, 2014

自定义标签数量(就这里面的20),按照文章数量排序:

<?php $this->widget('Widget_Metas_Tag_Cloud', array('sort' => 'count', 'ignoreZeroCount' => true, 'desc' => true, 'limit' => 20))->to($tags); ?>  
<?php while($tags->next()): ?>  
<li><a rel="tag" href="<?php $tags->permalink(); ?>"><?php $tags->name(); ?></a></li>
<?php endwhile; ?>

标签: tag, 标签