您站点文章的日历。

  • 名称: core/calendar
  • 类别: 小部件
  • API 版本: 3
  • 块类型: 动态(服务器渲染)
  • 关键词: posts,archive

属性

通过 attributes 属性在 block.json 中定义。

属性类型默认值描述
monthinteger——
yearinteger——

支持功能

通过 supports 属性在 block.json 中定义。

块标记

这是一个 动态块。它在服务器上渲染,不会在文章内容中保存 HTML。

在文章内容中,它存储为块注释:

<!-- wp:calendar /-->

来源