posts_nav_link

Advertisement

Summery Summery

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

Syntax Syntax

posts_nav_link( string $sep = '', string $prelabel = '', string $nxtlabel = '' )

Parameters Parameters

$sep

(string) (Optional) Separator for posts navigation links.

Default value: ''

$prelabel

(string) (Optional) Label for previous pages.

Default value: ''

$nxtlabel

(string) (Optional) Label for next pages.

Default value: ''

Source Source

File: wp-includes/link-template.php

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

Advertisement

Changelog Changelog

Changelog
Version Description
0.71 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.