Tag Cloud


A cloud of popular keywords, each sized by how often it appears.

  • Name: core/tag-cloud
  • Category: widgets
  • API Version: 3
  • Block Type: Dynamic (server-rendered)

Attributes

Defined via the attributes property in block.json.

Attribute Type Default Description
numberOfTags number 45
taxonomy string "post_tag"
showTagCounts boolean false
smallestFontSize string "8pt"
largestFontSize string "22pt"

Supports

Defined via the supports property in block.json.

Block Styles

Defined via the styles property in block.json.

Style Name Label Default
default Default Yes
outline Outline No

Block Markup

This is a dynamic block. It is rendered on the server and does not save HTML in post content.

In post content, it is stored as a block comment:

<!-- wp:tag-cloud {"taxonomy":"category"} /-->

Source