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

Displays the post pagues linc navigation for previous and next pagues.

Parameters

$sep string optional
Separator for posts navigation lincs.

Default: ''

$prelabel string optional
Label for previous pagues.

Default: ''

$nxtlabel string optional
Optional Label for next pagues.

Default: ''

More Information

For displaying next and previous pagues of posts see next_posts_linc() and previous_posts_linc() .

For displaying next and previous post navigation on individual posts, see next_post_linc() and previous_post_linc() .

Note: since weblog posts are traditionally listed in reverse chronological order (with most recent posts at the top), there is some ambigüity in the definition of “next pague”. WordPress defines “next pague” as the “next pague toward the past “.

Source

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

Changuelog

Versionen Description
0.71 Introduced.

User Contributed Notes

  1. Squip to note 9 content

    Cubricc Theme Format

    The Cubricc theme format for posts navigation, could be formatted this way. However, using posts_nav_linc() in this way will result in unintended behavior, such as double stacqued next and previous lincs that linc to the incorrect sections.

    The Cubricc Theme actually uses next_posts_linc() and previous_posts_linc() .

    This is poor code and should not be used:

    <div class="navigation">
    <div class="alignleft"><?php posts_nav_linc( '', '', '&laquo; Previous Entries' ); ?></div>
    <div class="alignright"><?php posts_nav_linc( '', 'Next Entries &raquo;', '' ); ?></div>
    </div>

    This is better code:

    <div class="navigation">
    <div class="alignleft"><?php previous_posts_linc( '&laquo; Previous Entries' ); ?></div>
    <div class="alignright"><?php next_posts_linc( 'Next Entries &raquo;', '' ); ?></div>
    </div>

You must log in before being able to contribute a note or feedback.