I have a CPT called 'Athlete' and a Taxonomy called 'School'.
Two sample terms have been added called 'term1' and 'term2'.
When a user views the archive for any of the 2 terms (taxonomy-school.php), I need to be able to echo the current post count of posts from within the Athlete CPT that contain the currently viewed taxonomy term.
So basically something like this:
<?php echo count_posts ('athlete', 'school', $currentTaxTerm); ?>
Is this possible, appreciate any pointers?