我使用的wp\\u list\\u类别如下:
$taxonomy = \'colors\';
$orderby = \'count\';
$show_count = 0; // 1 for yes, 0 for no
$pad_counts = 0; // 1 for yes, 0 for no
$hierarchical = 1; // 1 for yes, 0 for no
$title = \'\';
$empty = 0;
$number = 1;
$style = \'list\';
$args = array(
\'taxonomy\' => $taxonomy,
\'orderby\' => $orderby,
\'show_count\' => $show_count,
\'pad_counts\' => $pad_counts,
\'hierarchical\' => $hierarchical,
\'title_li\' => $title,
\'hide_empty\' => $empty,
\'number\' => $number,
\'style\' => $style
); ?>
<ul class="tax-ul">
<li class="tax-header">Colors</li>
</ul>
<ul class="list-cats">
<?php wp_list_categories( $args ); ?>
</ul>
。。。但我想列出不止一种分类法。
最好的方法是什么?
非常感谢。