Hi all!
I’m currently using this little snippet to show how many posts there are with a specified tag
$term = get_term_by('slug', lizard, post_tag);
// Fetch the count
echo $term->count;
My mission is to count several different tags and add them together.
But I don’t really understand the echo $term->count;
function.
Is there anyway to instead of echoing the answer, to store it in a variable?, For example $lizzard?