Search
  • Demo Site
  • Test Our Software Here
Search Menu

Example of the Groups Info Shortcode

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

See all parameters.

 

Show the number of tags for all groups

Code

[tag_groups_info group_id="all"]

Output

not assigned2
Work3
Eat and Drink5
Countries27
Architecture3
WordPress10
Other3

 

Show the number of tags for selected groups

Code

[tag_groups_info group_id="2,3"]

Output

Work3
Eat and Drink5

 

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.

Updated: 2018-04-13T06:10:32+00:00