我试图只获取类别2的子类别,这是我的代码:
<?php
$infinitano_cats_args1 = array(
'show_option_all' => '',
'orderby' => 'ID',
'order' => 'ASC',
'style' => 'list',
'show_count' => 0,
'hide_empty' => 0,
'use_desc_for_title' => 1,
'child_of' => '2',
'hierarchical' => 0,
);
wp_list_categories($infinitano_cats_args1); ?>
不知怎的,这不起作用。它给我的全部是类别uncatagorized
(不是类别2的孩子)。查询有什么问题?提前谢谢。