Page List


Display a list of all pages.

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

Block Relationships

Allowed inner blocks:
core/page-list-item

Attributes

Defined via the attributes property in block.json.

Attribute Type Default Description
parentPageID integer 0

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
  • core/isInsideSubmenu

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 /-->

Source