Search
  • Demo Site
  • Test Our Software Live
Search Menu

Example of the Tag 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 assigned1
Meal Type7
Ingredients50
Preparation4
Preparation Time6
Origin29
WordPress12
Other6
Language7
Type4
Level3

Show the number of tags for selected groups

Code

[tag_groups_info group_id="2,3"]

Output

Ingredients50
Preparation4

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

Share
Updated: 2020-05-21T17:04:38+00:00