WordPress at a glance

posts_nav_link() WP 1.0

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

Works based on: get_posts_nav_link()

No Hooks.


Null. Nothing.


posts_nav_link( $sep, $prelabel, $nxtlabel );
Separator for posts navigation links.
Default: ''
Label for previous pages.
Default: ''
Optional Label for next pages.
Default: ''


Since 0.71 Introduced.

Code of posts_nav_link() WP 5.6.2

function posts_nav_link( $sep = '', $prelabel = '', $nxtlabel = '' ) {
	$args = array_filter( compact( 'sep', 'prelabel', 'nxtlabel' ) );
	echo get_posts_nav_link( $args );

From tag: Navigation pagination

More from category: Archives

More from Template Tags: Posts, Pages, ...

No comments
    Log In