WordPress at a glance

posts_nav_link() WP 1.0

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


Null. Ничего.

Works based on: get_posts_nav_link()

No Hooks.


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

Список изменений

С версии 0.71 Введена.

Code of posts_nav_link() WP 5.5.1

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
    Log In . Register