为wordpress调用固定数量的tag标签

一段简单的代码就可以现实,不废话直接上代码 <?php $tags = get_tags( array( 'orderby' => 'count', 'order' => 'DESC', 'number' => '10') ); foreach ( $tags as $tag ) { $tag_link = get_tag_link( $tag->term_id ); echo '<li class="w-50 float-start"><a href="'.$tag_link.'">'.$tag->name.'</a…