顯示當前類別聰明的孩子類別,總髮帖量
<?php
$category_object = get_queried_object();
$current_category_taxonomy = $category_object->taxonomy;
$current_category_term_id = $category_object->term_id;
$current_category_name = $category_object->name;
$args = array(
'child_of' => $current_category_term_id,
'current_category' => $current_category_term_id,
'depth' => 0,
'echo' => 1,
'exclude' => '',
'exclude_tree' => '',
'feed' => '',
'feed_image' => '',
'feed_type' => '',
'hide_empty' => 0,
'hide_title_if_empty' => false,
'hierarchical' => true,
'order' => 'ASC',
'orderby' => 'name',
'separator' => '',
'show_count' => 1,
'show_option_all' => '',
'show_option_none' => __('No categories'),
'style' => 'list',
'taxonomy' => 'category',
'title_li' => __($current_category_name),
'use_desc_for_title' => 0,
);
wp_list_categories($args);
?>
你的意思是說,在主父類權童總類數顯示父類? –