the_posts_navigation( array $args = array() )
Displays the navigation to next/previous set of posts, when applicable.
Parameters
-
$args
array Optional -
See get_the_posts_navigation() for available arguments.
More Arguments from get_the_posts_navigation( ... $args )
Default posts navigation arguments.
prev_text
stringAnchor text to display in the previous posts link.
Default 'Older posts'.next_text
stringAnchor text to display in the next posts link.
Default 'Newer posts'.screen_reader_text
stringScreen reader text for the nav element.
Default 'Posts navigation'.aria_label
stringARIA label text for the nav element. Default'Posts'
.class
stringCustom class for the nav element. Default'posts-navigation'
.
Default:
array()
Source
File: wp-includes/link-template.php
.
View all references
function the_posts_navigation( $args = array() ) {
echo get_the_posts_navigation( $args );
}
Changelog
Version | Description |
---|---|
4.1.0 | Introduced. |