Description
The shortcode tag_groups_info displays information about tag groups on the frontend.
If you don’t use the parameter “info”, it shows the amount of tags. If “group_id” is a comma-separated list of group IDs or the keyword “all”, this information is formatted in a table.
Options
Show the number of tags for all groups
Code
[tag_groups_info group_id="all"]
Output
not assigned | 2 |
Work | 3 |
Eat and Drink | 5 |
Countries | 27 |
Architecture | 3 |
WordPress | 8 |
Other | 3 |
Show the number of tags for selected groups
Code
[tag_groups_info group_id="2,3"]
Output
Work | 3 |
Eat and Drink | 5 |
Show the label and the number of tags for one group
Code
In the group "[tag_groups_info group_id="2" info="label"]" we have [tag_groups_info group_id="2"] tags.
Output
In the group “Work” we have 3 tags.