Support » Fixing WordPress » Display number of posts within category
4 years ago
hey guys how can I display the number of post within a specific category??
Try <?php echo $wp_query->found_posts;?>
<?php echo $wp_query->found_posts;?>
ok I got it by my own
for people who need the code is below
$a = query_posts('category_name=appetizers');
$result = count($a);
3 years, 10 months ago
@bondigor69, I had to thank you. It helped a lot.