Displays the relational link for the next post adjacent to the current post.
$titlestringoptional
'%title'.Default:'%title'
$in_same_termbooloptional
Default:false
$excluded_termsint[]|stringoptional
Default:''
$taxonomystringoptional
$in_same_term is true. Default 'category'.Default:'category'
function next_post_rel_link( $title = '%title', $in_same_term = false, $excluded_terms = '', $taxonomy = 'category' ) {
echo get_adjacent_post_rel_link( $title, $in_same_term, $excluded_terms, false, $taxonomy );
}
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/next_post_rel_link