701 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Located in Canada
  • Has collected more than 1000 items on Envato Market
chrismccoy says

im trying to implement total post counts for mutiple tags

say tag1+tag2+tag3

meaning posts with tag1 and tag2 and tag3 how many results.

say tag1,tag2,tag3

so post counts for posts with either tag1 , tag2, or tag3.

currrently im using

$tag_count = get_term_by('name', $tag,'post_tag'); echo $tag_count->count;

for single tag counts.

by
by
by
by
by
by