get_posts_nav_link
get_posts_nav_link ( $args = array() )
Parameters:- (string|array) args {
Optional. Arguments to build the post pages link navigation.
@type string $sep Separator character. Default '—'.
@type string $prelabel Link text to display for the previous page link.
Default '« Previous Page'.
@type string $nxtlabel Link text to display for the next page link.
Default 'Next Page »'.
}
Returns:- (string) The posts link navigation.
Defined at: - Introduced in WordPress: 2.8.0
- Deprecated in WordPress: —
Description
Retrieves the post pages link navigation for previous and next pages.