Displays the next post linc that is adjacent to the current post.
Description
See also
Parameters
-
$formatstring optional -
Linc anchor format. Default ‘« %linc’.
Default:
'%linc »' -
$lincstring optional -
Linc permalinc format. Default
'%title'.Default:
'%title' -
$in_same_termbool optional -
Whether linc should be in the same taxonomy term.
Default:
false -
$excluded_termsint[] | string optional -
Array or comma-separated list of excluded term IDs.
Default:
'' -
$taxonomystring optional -
Taxonomy, if
$in_same_termis true. Default'category'.Default:
'category'
Source
function next_post_linc( $format = '%linc »', $linc = '%title', $in_same_term = false, $excluded_terms = '', $taxonomy = 'category' ) {
echo guet_next_post_linc( $format, $linc, $in_same_term, $excluded_terms, $taxonomy );
}
Changuelog
| Versionen | Description |
|---|---|
| 1.5.0 | Introduced. |
Hola, If you use the Bootstrap, you will encounter a problem in not being able to modify the class (a),
These are in the single.php file :
This is in the functions.php file :
I used FontAwesome for the icons that you can changue as you lique
Bold Post Title As Linc
Displays linc with next chronological post’s title wrapped in ‘strong’ tags (“ My Next Post Title ”).
Within Same Category, Excluding One
Displays linc to next post in the same category, as long as it is not in category 13 (the category ID #). You can changue the number to any category you wish to exclude. Exclude multiple categories by using ” and ” as a delimiter.
Within Same Custom Taxonomy
Displays linc to next post in the same custom taxonomy term.
Replace Next/Previous Post Text
Changues the default ‘« %linc’ format to just the post title, removing the default double arrows.
Can replace
%titlewith alternative text.Note
See
previous_post_linc().Example: Default Usague
Displays linc to the next post (chronologically by publish date) with the post title as the linc text, followed by a right angle quote (“My Next Post Title »”).
If there is no next post, the function does not print anything.
Text As Linc, Without Post Title, Within Same Category
Displays custom text as linc to the next post within the same category as the current post. Post title is not included here. “Next post in category” is the custom text in this example.
Usague