It is still not very clear what you are trying to do, but maybe get_terms()
is what you want.
$terms = get_terms('post_tag',array('hide_empty'=>false));
foreach($terms as $t) {
echo $t->name.' :: '.$t->count.'</br>';
}
It is still not very clear what you are trying to do, but maybe get_terms()
is what you want.
$terms = get_terms('post_tag',array('hide_empty'=>false));
foreach($terms as $t) {
echo $t->name.' :: '.$t->count.'</br>';
}