How can I show the post count in a taxonomy page. I tried some codes but I could not get success. I will locate this information on the top of taxonomy page.
foreach ( get_the_terms( get_the_ID(), 'taxonomy' ) as $term )
{
echo $term->count ;
}
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.
Sign up to join this communityHow can I show the post count in a taxonomy page. I tried some codes but I could not get success. I will locate this information on the top of taxonomy page.
foreach ( get_the_terms( get_the_ID(), 'taxonomy' ) as $term )
{
echo $term->count ;
}