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

Glossary Term

get_adjacent_post_link()

3 tags 1 category

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

Inputs: $format (string): Link anchor format. $link (string): Link permalink format. $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 terms IDs. Default empty. $previous (bool): Optional. Whether to display link to previous or next post. Default true.

Returns string: The link URL of the previous or next post in relation to the current post.

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…