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 assigned0
Meal Type6
Ingredients42
Preparation4
Preparation Time6
Origin28
WordPress10
Other3

 

Show the number of tags for selected groups

Code

[tag_groups_info group_id="2,3"]

Output

Ingredients42
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 42 tags.

Please find more information about Tag Groups on the plugin main page.
Share
Updated: 2018-04-13T06:10:32+00:00