Title: the_comments_navigation
Published: December 9, 2015
Last modified: February 24, 2026

---

# the_comments_navigation( array $args = array() )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/functions/the_comments_navigation/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/functions/the_comments_navigation/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/the_comments_navigation/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/the_comments_navigation/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/the_comments_navigation/?output_format=md#wp--skip-link--target)

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

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/the_comments_navigation/?output_format=md#parameters)󠁿

 `$args`arrayoptional

See [get_the_comments_navigation()](https://developer.wordpress.org/reference/functions/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](https://developer.wordpress.org/reference/functions/the_comments_navigation/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-includes/link-template.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/link-template.php#L3362)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/link-template.php#L3362-L3364)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/the_comments_navigation/?output_format=md#related)󠁿

| Uses | Description | 
| [get_the_comments_navigation()](https://developer.wordpress.org/reference/functions/get_the_comments_navigation/)`wp-includes/link-template.php` |

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

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/the_comments_navigation/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.4.0](https://developer.wordpress.org/reference/since/4.4.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fthe_comments_navigation%2F)
before being able to contribute a note or feedback.