get_the_posts_navigation
get_the_posts_navigation ( $args = array() )
Parameters:- (array) args { Optional. Default posts navigation arguments. Default empty array. @type string $prev_text Anchor text to display in the previous posts link. Default 'Older posts'. @type string $next_text Anchor text to display in the next posts link. Default 'Newer posts'. @type string $screen_reader_text Screen reader text for the nav element. Default 'Posts navigation'. @type string $aria_label ARIA label text for the nav element. Default 'Posts'. @type string $class Custom class for the nav element. Default 'posts-navigation'. }
Returns:- (string) Markup for posts links.
Defined at:Change Log: - Introduced in WordPress: 4.1.0
- Deprecated in WordPress: —
Description
Returns the navigation to next/previous set of posts, when applicable.