Page List Item


Displays a page inside a list of all pages.

  • Name: core/page-list-item
  • Category: widgets
  • API Version: 3
  • Block Type: Dynamic (server-rendered)
  • Keywords: page, menu, navigation

Block Relationships

Parent blocks (direct):
core/page-list

Attributes

Defined via the attributes property in block.json.

Attribute Type Default Description
id number
label string
title string
link string
hasChildren boolean

Supports

Defined via the supports property in block.json.

Context

Defined via the usesContext and providesContext properties in block.json.

Uses context:

  • textColor
  • customTextColor
  • backgroundColor
  • customBackgroundColor
  • overlayTextColor
  • customOverlayTextColor
  • overlayBackgroundColor
  • customOverlayBackgroundColor
  • fontSize
  • customFontSize
  • showSubmenuIcon
  • style
  • openSubmenusOnClick
  • submenuVisibility

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:core/page-list-item {"id":"1","label":"Page","link":"https://example.com","hasChildren":"false"} /-->

Source