$instance['parent'],
'number' => $instance['number'],
'hide_empty' => false,
'orderby' => $instance['orderby'],
'order' => $instance['order'],
);
$categories = get_terms( 'question_category' , $cat_args);
?>
$category) :
$sub_cat_count = count(get_term_children( $category->term_id, 'question_category' ));
?>
-
name; ?>
count; ?>
0): ?>
0){
echo '
';
echo '
' .$sub_cat_count.' '.__('Sub Categories', 'ap') .'
';
ap_child_cat_list($category->term_id);
echo '
';
}
?>
false,
'orderby' => 'count',
'order' => 'DESC',
);
$categories = get_terms( 'question_category' , $cat_args);
?>