Core Function
View Source on Trac ↗ adjacent_posts_rel_link()
adjacent_posts_rel_link(
mixed $title = '%title',
mixed $in_same_term = false,
mixed $excluded_terms = '',
mixed $taxonomy = 'category'
) Displays the relational links for the posts adjacent to the current post.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $title string | Optional. Link title format. Default '%title'. |
| bool | $in_same_term Optional. Whether link should be in the same taxonomy term. Default false. Required |
| mixed | (int[] | string) $excluded_terms Optional. Array or comma-separated list of excluded term IDs. Default empty. Required |
| $taxonomy string | Optional. Taxonomy, if `$in_same_term` is true. Default 'category'. |
Return Value
(void)
No return value description available.
Function Information
Since Version
2.8.0
Source File
wp-includes/link-template.php
Advertisement