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.
anchor:truereusable:falsehtml:falselock:falseinserter:falseinteractivity:clientNavigation:true
Context
Defined via the usesContext and providesContext properties in block.json.
Uses context:
textColorcustomTextColorbackgroundColorcustomBackgroundColoroverlayTextColorcustomOverlayTextColoroverlayBackgroundColorcustomOverlayBackgroundColorfontSizecustomFontSizeshowSubmenuIconstyleopenSubmenusOnClicksubmenuVisibility
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
- block.json (reference)
- Source directory — browse
edit.js,save.js,index.php, and more.