Tag Groups Info – Shortcode Parameters

This is a feature of the Free, Tag Cloud Plus and Premium plans. Tag Groups Premium Tag Groups free

If you don’t know what is a shortcode and how to use it, you first may want to read this article.

Shortcode

[tag_groups_info]

Example

[tag_groups_info group_id=3 info=label]

Data Types

  • string: A text. For identifiers that won’t be visible to visitors you often have to replace spaces with _ or -. If the string contains spaces, you need to wrap it in quotes.
  • integer: A number without decimal places.
  • 0 or 1: 0 turns the feature off and 1 on.

Parameters

group_id

Determines which groups to display. If you select more than one group, the result will be displayed in a table.

accepted valuesdefaultexample shortcode
One group ID, a comma-separated list of IDs or the keyword “all”allgroup_id=1,5,6

taxonomy

Restrict the information only to these taxonomies. Available are only taxonomies that have been activated in the Settings.

accepted valuesdefaultexample shortcode
comma-separated list of taxonomy namesTaxonomies selected in the settings under “Basics”.taxonomy=post_tag,product_tag

html_id

Value for id in the enclosing <table>, <span> or <a> element.

accepted valuesdefaultexample shortcode
stringemptyhtml_id=“my_info_div”

html_class

Value for class in the enclosing <table>, <span> or <a> element.

accepted valuesdefaultexample shortcode
stringemptyhtml_class=“make-it-count”

info

Determines which kind of information to display.

accepted valuesdefaultexample shortcode
string, one of the options below"number_of_tags"info=label

Possible values

valuedescription
number_of_tagsShows the number of assigned tags. For a single tag group, the output is only a number. For multiple tag groups, the output is a table with the group names on the left side.
labelShows the label (name) of this group, or a table of group names for multiple groups.
link (since 1.38.0) (only in the premium version)Shows the label(s) with a link. The link can be defined with the link_pattern parameter.

Defines the link when using the info parameter with “link”. This way you can link to pages that contain related information or the tags of a group. The pages need to be generated manually.

Available are two placeholders: “{id}” (tag group ID) and “{slug}” (a slug generated from the group name). The link pattern is always relative to the site URL. The final link is an absolute URL.

accepted valuesdefaultexample shortcode
string“{slug}”link_pattern=/group-tags/{slug}

target

Defines the HTML “target” attribute when using the info parameter with “link”.

accepted valuesdefaultexample shortcode
string“_self”target="_blank"