通过考试怎么样smallest
和largest
参数到wp_tag_cloud()
让他们都一样?
<?php
wp_tag_cloud(
array(
\'taxonomy\' => \'channels\',
\'smallest\' => \'1\',
\'largest\' => \'1\',
\'unit\' => \'em\',
)
);?>
更新:使用
get_terms()
要获取多个分类术语,请执行以下操作:
<?php $terms = get_terms(array(\'channels\', \'stations\'));
if (is_array($terms)) : ?>
<ol>
<?php foreach ($terms as $term) : ?>
<li><a href="<?php echo get_term_link($term) ?>"><?php echo $term->name ?></a></li>
<?php endforeach; ?>
</ol>
<?php endif; ?>