I have one custom page in my blog which shows posts from selected categories. I want to show the post count for the selected categories besides the link for custom page .
i.e Custom Page (100)
I searched and got the code for all post count.
<?php
$count_posts = wp_count_posts();
$published_posts = $count_posts->publish;
echo $published_posts;
?>
what i want to achieve is . . .
custom result = all posts count - (excluded cat1 post count + excluded cat2 post count)
I think it clears my question ..