Displays a paginated navigation to next/previous set of comments, when applicable.
- Name:
core/comments-pagination - Category: theme
- API Version: 3
- Block Type: Hybrid (static save + server enhancements)
Block Relationships
Parent blocks (direct):
– core/comments
Allowed inner blocks:
– core/comments-pagination-previous
– core/comments-pagination-numbers
– core/comments-pagination-next
Attributes
Defined via the attributes property in block.json.
Supports
Defined via the supports property in block.json.
anchor:truealign:truereusable:falsehtml:falsecolor:layout:allowSwitching:falseallowInheriting:falsedefault:{"type":"flex"}
typography:fontSize:truelineHeight:true
interactivity:clientNavigation:true
Context
Defined via the usesContext and providesContext properties in block.json.
Provides context:
comments/paginationArrowattributepaginationArrow
Block Markup
This is a hybrid block. It saves static markup that the server may enhance during rendering.
<!-- wp:comments-pagination {"paginationArrow":"chevron","style":{"elements":{"link":{"color":{"text":"var:preset|color|background"}}}},"backgroundColor":"foreground","textColor":"background"} -->
<!-- wp:comments-pagination-previous {"label":"Previous label comments"} /-->
<!-- wp:comments-pagination-numbers /-->
<!-- wp:comments-pagination-next {"label":"Next label comments"} /-->
<!-- /wp:comments-pagination -->
Source
- block.json (reference)
- Source directory — browse
edit.js,save.js,index.php, and more.