这是我用于列出类别的代码:
<?php
$this_category = get_queried_object();
$args = array(
\'orderby\' => \'id\',
\'show_count\' => \'0\',
\'child_of\' => $this_category->term_id,
\'use_desc_for_title\' => \'0\',
\'taxonomy\' => \'product_cat\',
\'hide_empty\' => \'0\',
\'child_of\' => $this_category->term_id
);
wp_list_categories($args);
?>
如果我输入某个类别,它会列出子类别,那么如果我输入子类别,我希望保持子类别的列表状态,就像im在前一个类别中一样。有机会这样做吗?