get_the_posts_pagination

SummerySummery

Retrieves a paginated navigation to next/previous set of posts, when applicable.

Syntax

get_the_posts_pagination( array $args = array() )

ParametersParameters

$args

(array) (Optional) Default pagination arguments, see paginate_links().

  • 'screen_reader_text'
    (string) Screen reader text for navigation element. Default 'Posts navigation'.
  • 'aria_label'
    (string) ARIA label text for the nav element. Default 'Posts'.

Default value: array()

ReturnReturn

(string) Markup for pagination links.

SourceSource

File: wp-includes/link-template.php


			

ChangelogChangelog

Changelog
Version Description
5.3.0 Added the aria_label parameter.
4.1.0 Introduced.
Scroll to Top