<?php $args = array( // 投稿数の多い方から 10 個 'orderby' => 'count', 'order' => 'desc', 'number' => 10 ); ?> <ul> <?php foreach ( get_terms('post_tag', $args) as $tag) : ?> <li><a href="<?php echo get_tag_link($tag->term_id); ?>"><?php echo $tag->name; ?>(<?php echo $tag->count ; ?>)</a></li> <?php endforeach; ?> </ul>
↧
表示するタグの数を指定
↧