When post has no tags, tag_groups_cloud shows all tag groups
-
I want to get each post’s tag cloud. However, what happens if a post doesn’t have any tags assigned to it, tag_groups_cloud returns all the groups and all their tags. That’s not what I want at all… This is my code, run within The Loop:
$tag_group_args' = array( 'orderby' => 'count', 'order' => 'DESC', 'tags_post_id' => 0 ); $groups = tag_groups_cloud( $tag_group_args, true );
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘When post has no tags, tag_groups_cloud shows all tag groups’ is closed to new replies.