WordPress at Your Fingertips

posts_nav_link() WP 1.0

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

No Hooks.

Return

null. Nothing.

Usage

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

Changelog

Since 0.71 Introduced.

Code of posts_nav_link() WP 5.8.2

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

Navigation pagination

Archives

Posts, Pages, ...

No comments
    Log In