Example of the Tag Groups Info Shortcode

Examples of the shortcode tag_groups_info that displays the number of tags in a group or in selected groups.

Description

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

[tag_groups_info group_id="2,3"]
not assigned 24
Meal Type 8
Ingredients 53
Preparation 3
Preparation Time 4
Origin 29
WordPress 12
Other 5
Language 9
Type 4
Level 3
Year 6
Place 9
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 53
Preparation 3

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 53 tags.