try this:
$tags = get_the_tags(get_the_ID());
if(count($tags) > 1){
foreach($tags as $tag){
echo $tag->name."(".$tag->count.")";
}
}
The get_the_tags_ function returns an array buts indexes do not begin at 0 as they are term ID’s
try this:
$tags = get_the_tags(get_the_ID());
if(count($tags) > 1){
foreach($tags as $tag){
echo $tag->name."(".$tag->count.")";
}
}
The get_the_tags_ function returns an array buts indexes do not begin at 0 as they are term ID’s