Example of the Tag Groups Info Shortcode

Description

The shortcode tag_groups_info displays information about tag groups on the frontend.

[tag_groups_info group_id="2,3"]
not assigned 34
Meal Type 8
Ingredients 52
Preparation 2
Preparation Time 6
Origin 7
WordPress 13
Other 4
Language 8
Type 4
Level 4
Year 6
Place 29
Subject 13

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

Show the number of tags for selected groups

Code

Output

Ingredients 52
Preparation 2

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 “Ingredients” we have 52 tags.