Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

get_adjacent_post_rel_link()

3 tags 1 category

get_adjacent_post_rel_link() — Retrieves the adjacent post relational link. Can either be next or previous post relational link.

Inputs: $title (string): Optional. Link title format. Default ‘%title’. $in_same_term (bool): Optional. Whether link should be in the same taxonomy term. Default false. $excluded_terms (int[]|string): Optional. Array or comma-separated list of excluded term IDs. Default empty. $previous (bool): Optional. Whether to display link to previous or next post. Default true. $taxonomy (string): Optional. Taxonomy, if $in_same_term is true. Default ‘category’.

Returns string|null: The adjacent post relational link URL.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…