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

yibin 2015-02-08 Typecho 532

自定义标签数量(就这里面的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; ?>

扫码添加微信

13013082126 扫描微信 建站咨询 优化咨询