admin管理员组

文章数量:1277901

I want to show all non-empty tags used on the site in a sidebar next to the post. Currently, inside a shortcode-triggered function in functions.php I'm calling...

$tags = get_tags( array(
    'orderby' => 'name',
    'order' => 'ASC',
    'get' => 'all'
) );

...however this still shows empty tags, similar to setting 'hide_empty'=>false. If I get rid of 'get'=>'all', then only the tags used by the current post are shown.

How do I show all non-empty tags, not just the ones used by the current post?

本文标签: