A WordPress-centric search engine for devs and theme authors



posts_nav_link ›

Since0.71
Deprecatedn/a
posts_nav_link ( $sep = '', $prelabel = '', $nxtlabel = '' )
Parameters: (3)
  • (string) $sep Optional. Separator for posts navigation links. Default empty.
    Required: No
    Default: (empty)
  • (string) $prelabel Optional. Label for previous pages. Default empty.
    Required: No
    Default: (empty)
  • (string) $nxtlabel Optional Label for next pages. Default empty.
    Required: No
    Default: (empty)
Defined at:
Codex:

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



Source

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