I need to present all non-empty tags used on the location in a sidebar subsequent to the publish. Presently, inside a shortcode-triggered perform in capabilities.php
I am calling…
$tags = get_tags( array(
'orderby' => 'title',
'order' => 'ASC',
'get' => 'all'
) );
…nevertheless this nonetheless exhibits empty tags, just like setting 'hide_empty'=>false
. If I do away with 'get'=>'all'
, then solely the tags utilized by the present publish are proven.
How do I present all non-empty tags, not simply those utilized by the present publish?