If you don’t know what is a shortcode and how to use it, you first may want to read this article.
Each shortcode comes with a variety of parameters that let you show and hide empty tabs or tags, set the smallest and largest font size, open tabs by clicking or hovering with the mouse pointer, you can prepend a character or have your own separator, you can customize the tooltip and add further queries to the link, and much more.
Using these parameters and possibly some custom CSS, your tag cloud can even get rid of all tabs and just show the tags of one group.
Some key points need to be highlighted:
- If you select more than one taxonomy, then all the terms of the various categories will be mixed into one cloud.
- If you don’t use “post_tag” as your tag group taxonomy then you have to tell the shortcode which taxonomy it has to show. (For example taxonomy=”product_tag”1 if you use WooCommerce product tags.)
- If you need to list tag groups in parameters, use the IDs that you find on the Tag Groups page (where you create and edit groups).
The parameters are listed in the documentation of the premium plugin, since these features are shared. The descriptions also apply to the respective Gutenberg blocks.
- for the tabbed tag cloud
- for the accordion tag cloud
- for the alphabetical tag cloud
- for tag groups info
If you don’t want to mess around with shortcodes and parameters, you can also get the same results with Gutenberg, which is the default WordPress editor since version 5.0. All tag cloud shortcodes exist as Gutenberg blocks and you can simply configure them through a user interface.
Examples of tag clouds are available here.
- If you copy & paste code, you will have to fix the quotes in your editor.