Number of posts in a category
-
Hello,
Is there any way to display number of published posts in a specific category?
This code unfortunately displays number of all published posts, in all categories:
<?php $published_posts = wp_count_posts()->publish; ?>
Is there a solution?
Thanks in advance .)
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Number of posts in a category’ is closed to new replies.