get_posts_nav_link() WP 1.0
Retrieves the post pages link navigation for previous and next pages.
Works based on: get_previous_posts_link(), get_next_posts_link()
Basis of: posts_nav_link()
No Hooks.
Return
String. The posts link navigation.
Usage
get_posts_nav_link( $args );
- $args(string/array)
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: array()
-
Notes
- Global. WP_Query. $wp_query WordPress Query object.
Changelog
Since 2.8.0 | Introduced. |