the_comments_navigation( array $args = array() )

In this article

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

Parameters

$argsarrayoptional
See get_the_comments_navigation() for available arguments.
More Arguments from get_the_comments_navigation( … $args )Default comments navigation arguments.
  • prev_text string
    Anchor text to display in the previous comments link.
    Default ‘Older comments’.
  • next_text string
    Anchor text to display in the next comments link.
    Default ‘Newer comments’.
  • screen_reader_text string
    Screen reader text for the nav element. Default ‘Comments navigation’.
  • aria_label string
    ARIA label text for the nav element. Default 'Comments'.
  • class string
    Custom class for the nav element. Default 'comment-navigation'.

Default:array()

Source

function the_comments_navigation( $args = array() ) {
	echo get_the_comments_navigation( $args );
}

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.