Count several post tags


This maybe should be posted on a php forum, but since it’s WordPress related, I’m giving it a try here..

With this code, I’ll get the total count of posts work a certain tag;

$term = get_term_by('slug', lizard, post_tag);
echo $term->count;

How do I write if I would like to know how many posts there are in 10 different tags together?

I guess some kind of array?

, , JoBe 8 months 0 Answers 95 views 0

Leave an answer