get_the_posts_pagination
get_the_posts_pagination ( $args = array() )
Parameters:- (array) args {
Optional. Default pagination arguments, see paginate_links().
@type string $screen_reader_text Screen reader text for navigation element.
Default 'Posts pagination'.
@type string $aria_label ARIA label text for the nav element. Default 'Posts pagination'.
@type string $class Custom class for the nav element. Default 'pagination'.
}
Returns:- (string) Markup for pagination links.
Defined at:Change Log: - Introduced in WordPress: 4.1.0
- Deprecated in WordPress: —
Description
Retrieves a paginated navigation to next/previous set of posts, when applicable.