On this page
the_comments_navigation( array $args = array() )
Displays navigation to next/previous set of comments, when applicable.
Parameters
$argsarray Optional-
See get_the_comments_navigation() for available arguments.
More Arguments from get_the_comments_navigation( ... $args )
Default comments navigation arguments.
prev_textstringAnchor text to display in the previous comments link.
Default 'Older comments'.next_textstringAnchor text to display in the next comments link.
Default 'Newer comments'.screen_reader_textstringScreen reader text for the nav element. Default 'Comments navigation'.aria_labelstringARIA label text for the nav element. Default'Comments'.classstringCustom class for the nav element. Default'comment-navigation'.
Default:
array()
Source
File: wp-includes/link-template.php. View all references
function the_comments_navigation( $args = array() ) {
echo get_the_comments_navigation( $args );
}
Related
Uses
| Uses | Description |
|---|---|
| get_the_comments_navigation() wp-includes/link-template.php | Retrieves navigation to next/previous set of comments, when applicable. |
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/the_comments_navigation