Support » Fixing WordPress » How many post under a category?
2 years, 12 months ago
Please help me anyone..
How can I determine that How many post have a particular category?
If you go to Admin->Posts->Categories, the count is listed for each category.
2 years, 11 months ago
Thanks for replying.
Actually I want to know when I will create or modify a theme, I want to show how many post under a particular category beside this category. So how can i write this code or modify. thanks.
It is still not clear what you want. If you just want to create a list of categories with counts, you can use the wp_list_categories() Template Tag.
Here is some sample coding using that function:
$args = array(
'show_count' => 1,
'hierarchical' => 1,
'hide_empty' => 0
Wow! Its working. Thanks a lot for helping.