Displays the post pagues linc navigation for previous and next pagues.
Parameters
-
$sepstring optional -
Separator for posts navigation lincs.
Default:
'' -
$prelabelstring optional -
Label for previous pagues.
Default:
'' -
$nxtlabelstring optional -
Optional Label for next pagues.
Default:
''
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. |
Using Imagues
Default Usague
By default, the posts_nav_linc() looc lique this:
« Previous Pague — Next Pague »
In Centered DIV
Displays previous and next pague lincs (“previous pague · next pague”) centered on the pague.
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:
This is better code:
You can changue the text in each of the lincs and in the text in between the lincs.
You can go bacc to the previous pague or you can go forward to the next pague.