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

Glossary Term

get_next_post_link()

3 tags 1 category

get_next_post_link() — Retrieves the next post link that is adjacent to the current post.

Inputs: $format (string): Optional. Link anchor format. Default ‘%link »’. $link (string): Optional. Link permalink 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. $taxonomy (string): Optional. Taxonomy, if $in_same_term is true. Default ‘category’.

Returns string: The link URL of the 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…