W3cubDocs

/WordPress

the_comments_pagination( array $args = array() )

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

Parameters

$argsarrayoptional
See get_the_comments_pagination() for available arguments.
More Arguments from get_the_comments_pagination( … $args )Default pagination arguments.
  • screen_reader_text string
    Screen reader text for the nav element. Default ‘Comments pagination’.
  • aria_label string
    ARIA label text for the nav element. Default ‘Comments pagination’.
  • class string
    Custom class for the nav element. Default 'comments-pagination'.

Default:array()

Source

function the_comments_pagination( $args = array() ) {
	echo get_the_comments_pagination( $args );
}

Changelog

Version Description
4.4.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/the_comments_pagination