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:
  • 5: .
  • 5: .

Description

Returns the navigation to next/previous set of posts, when applicable.

Related Functions

get_the_post_navigation, the_posts_navigation, get_the_posts_pagination, the_post_navigation, get_the_comments_navigation

Top Google Results

User discussions

wpseek mobile