I would like to be able to display the number of posts made over all time in one category. WordPress already displays the number of posts in each category, but I want to display the total for a particular category separately on the home page.
Is there a simple way of doing this with WordPress without writing a new database query?
(I am using WordPress to power a dog rescue site. Each post is about one dog, and when a dog is rehomed, it moves from the ‘I need a home’ category to ‘rehomed’. We would like to show a banner on the home page displaying the total number of dogs rehomed since the site started.)
- The topic ‘display count of posts in one category only?’ is closed to new replies.