adjacent_posts_rel_link() wordpress function and usage This text is not used because the data attribute has a value

adjacent_posts_rel_link() wordpress function and usage

Home / WordPress / WordPress Wiki / adjacent_posts_rel_link() wordpress function and usage

adjacent_posts_rel_link( string $title = '%title', bool $in_same_term = false, int[]|string $excluded_terms = '', string $taxonomy = 'category' )
Displays the relational links for the posts adjacent to the current post.

Parameters

$title

(string) (Optional) Link title format.

Default value: ‘%title’

$in_same_term

(bool) (Optional) Whether link should be in a same taxonomy term.

Default value: false

$excluded_terms

(int[]|string) (Optional) Array or comma-separated list of excluded term IDs.

Default value: ”

$taxonomy

(string) (Optional) Taxonomy, if $in_same_term is true.

Default value: ‘category’

 

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments