Comments Pagination


目录


Displays a paginated navigation to next/previous set of comments, when applicable.

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:

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


版本号 #2
由 壳壳虫 创建于 2026-10-31 18:31:59 UTC
由 壳壳虫 更新于 2026-10-31 18:32:01 UTC