Drupal – Get number of nodes of Taxonomy Term by Term ID

In Drupal, you can get the number of nodes of a specific term by

<?php print taxonomy_term_count_nodes($term_id); ?>

 

Done =)

Reference: StackOverflow – How do I create a node count for each each category term in Drupal?

2 thoughts on “Drupal – Get number of nodes of Taxonomy Term by Term ID”

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.