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.

Return

Nothing (null).

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: ''

Code of posts_nav_link: wp-includes/link-template.php VER 5.0.1

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

Related Functions

From tag: Navigation pagination

More from category: Archives

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

No comments
    Hello, !     Log In . Register