A cloud of popular keywords, each sized by how often it appears.
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.
anchor:truehtml:falsealign:truespacing:margin:truepadding:true
typography:lineHeight:true
interactivity:clientNavigation:true
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
- block.json (reference)
- Source directory — browse
edit.js,save.js,index.php, and more.