在查看归档页面时显示分类、标签和自定义分类法的描述。
属性
通过 attributes 属性在 block.json 中定义。
此块没有自定义属性。
支持
通过 supports 属性在 block.json 中定义。
anchor:truealign:"wide","full"html:falsebackground:backgroundImage:truebackgroundSize:truegradient:true
color:link:true
dimensions:minHeight:trueminWidth:true
spacing:padding:truemargin:true
typography:fontSize:truelineHeight:truetextAlign:true
interactivity:clientNavigation:true
shadow:true
上下文
通过 usesContext 和 providesContext 属性在 block.json 中定义。
使用的上下文:
termIdtaxonomy
块标记
这是一个 动态块。它在服务器上渲染,不会在帖子内容中保存 HTML。
在帖子内容中,它存储为块注释:
<!-- wp:term-description {"align":"full"} /-->
来源
- block.json (参考)
- 源代码目录 — 浏览
edit和save源文件、index.php等。