Accordion Tag Cloud – Gutenberg Block

This is a feature of the free and the premium plugins. Tag Groups Premium Tag Groups free

Block Options

The following options appear in the editor side panel after you selected a block.

Tags and Terms

Included taxonomies

Restrict the tags only to these taxonomies (“tag types”). Available are only taxonomies that have been activated in the Tag Groups Settings.

Smallest font size

Font-size in pt of the smallest tags.

Largest font size

Font-size in pt of the largest tags.

Tags per group

Maximum amount of tags in one cloud (per group). Pull the slider to zero to show an unlimited number.

Order tags by

Which field to use for sorting the tags.

Note on using “Natural Sorting”: Since WordPress doesn’t natively offer natural sort order, we have to first order them by name and then by natural sort order. If you limit the number of tags, the amount of tags is therefore determined by cutting off with “name” sorting and then sorting them with “natural”.

Sort order

Whether to sort the tags in ascending or descending order. Ascending order also means from oldest to newest.

Hide unused tags

Whether to hide or show tags that are not used by any post.

Separator

A separator between the tags.

Adjust separator size to following tag

Disable if you want to set a fixed size.

Separator size

The size of the separator, if not automatically adjusted to the size of the following tag.

Prepend

Prepend to each tag label. Can obtain the placeholder {count} that will be replaced with the post count for that tag.

Append

Append to each tag label. Can obtain the placeholder {count} that will be replaced with the post count for that tag.

Show post count in the tooltip

Whether to show the number of posts as tooltip (behind the tag description) when hovering the mouse over the tag.

Custom title

Custom title shown as tooltip. No HTML, but you can use {count} and {description} as placeholders.

Set the “target” attribute for the links of the tags. Possible values are:

  • _blank: open in a new tab/window
  • _self: open in the same frame
  • _parent: open in the parent frame
  • _top: open in the full tab/window of this frame

In the shortcode you can also set the name of a frame.

Append something to each tag’s link, for example a query.

Add filter to tags for multiple groups

When you use the premium plugin, additional query parameters in the links make sure that we can distinguish between the same tag that is used in different groups. If the resulting posts are not complete and troubleshooting doesn’t help, you can disable it here.

Use tags of the following post

Display only tags that are assigned to the post (or page) with a specified ID. If you need this option, you mostly want to “use this post”. The menu offers also some recent posts by title.

Groups and Panels

Delay the display of the panels until they are fully rendered

By default the panels are only revealed after they are fully rendered. That way your visitors don’t see the raw structure with all tags listed below each other before the software is able to kick in. If you use this feature in an unusual position or experience issues, you can disable it here.

Show panels

Whether to show the panels. This option is useful if you want to show only one group.

Hide empty panels

Whether to hide panels without tags.

Open panels on mouseover

Whether panels can be selected by hovering over with the mouse pointer (without clicking).

Make panels collapsible

Whether tabs are collapsible (toggle open/close).

Start with expanded panels

Whether panels are initially expanded or collapsed. Useful when you make tabs collapsible.

Panel height

The height of the panels can be adjusted to the content or the parent element.

Include groups

Tag groups that will be considered in the tag cloud.

Label on tab for not-assigned tags

The name used in the tab of not-assigned tags.

Use groups of the following post

Display only groups of which at least one assigned tag is also assigned to the selectd post (or page). Matching groups will be added to the list specified by Include groups.

Advanced Styling

You can set here IDs and classes to be referred to in CSS. You need some knowledge of CSS to use these options.

div id

Define an ID for the enclosing <div>.

  1. If you display more than one tag cloud on the same page, each shortcode needs a different value. The safest solution is to leave it empty so that div_id automatically receives a random value.
  1. Avoid words that are used by WordPress such as “content” or “main”. Each ID must be unique for the entire page.

div class

Define a class for the enclosing <div>.

h3 class

Define a class for the <h3> that contains the headers.

inner div class

Define a class for the inner <div> that contains the tags.

How do you rate this article?