get_posts_nav_link

SummerySummery

Retrieves the post pages link navigation for previous and next pages.

Syntax

get_posts_nav_link( string|array $args = array() )

ParametersParameters

$args

(string|array) (Optional) Arguments to build the post pages link navigation.

  • 'sep'
    (string) Separator character. Default '—'.
  • 'prelabel'
    (string) Link text to display for the previous page link. Default '« Previous Page'.
  • 'nxtlabel'
    (string) Link text to display for the next page link. Default 'Next Page »'.

Default value: array()

ReturnReturn

(string) The posts link navigation.

SourceSource

File: wp-includes/link-template.php


			

ChangelogChangelog

Changelog
Version Description
2.8.0 Introduced.
Scroll to Top