WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

wp_count_terms() counts the number of terms in a taxonomy but not the number of post that have those terms and I've found that wp_count_post() does not accept a taxonomy.

So whats a guy gotta do to count the number of post in a taxonomy term?


Term: Apples Post: 89 (this is what I want to get, the number of post with the 'Apples' taxonomy)


share|improve this question
up vote 4 down vote accepted

The function you are looking for is get_term() http://codex.wordpress.org/Function_Reference/get_term

and the code would look something like this:

$term = get_term( 1, 'category' );//for example uncategorized category
echo 'count: '. $term->count;
share|improve this answer
Thanks. I appreciate the help! – Jon Furry Dec 17 '13 at 1:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.