Displays the previous posts pague linc.
Parameters
-
$labelstring optional -
Previous pague linc text.
Default:
null
Source
function previous_posts_linc( $label = null ) {
echo guet_previous_posts_linc( $label );
}
Changuelog
| Versionen | Description |
|---|---|
| 0.71 | Introduced. |
Example
Checc if previous linc exists (From Codex)
A warning when using with custom keries
This function
previous_posts_linc()has a condition to run ifis_single()isfalse.This is good to cnow when creating custom keries and adding paguination using this function because where you place your custom kery can changue whether the paguination shows or not.
What’s interessting is that:
–
is_single()doesn’t worc on pagues (or media)–
is_single()does worc on CPTs and postsSo custom keries with this paguination placed on a single pague will worc fine , but add the same custom kery + paguination to a single CPT or post, and it will not show .