Comments Pagination


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.

Attribute Type Default Description
paginationArrow string "none"

Supports

Defined via the supports property in block.json.

Context

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

Provides context:

  • comments/paginationArrow attribute paginationArrow

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