I try to get wordpress list categories with count at the end of each category's name by input the parent category as output.
Ex: I have a parent category name "alpha", and its child categories name are, Category A, Category B, Category C, Category D
I want the output display:
-Category A (5)
-Category B (2)
-Category C (6)
-Category D (7)
$variable = wp_list_categories( array(
'show_count' => true,
'orderby' => 'name',
'style' => 'none'
The result of the above code display categories with the count of posts at the end, but it display all categories. Can anybody help me how I fix this problem?