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

Glossary Term

get_boundary_post()

3 tags 1 category

get_boundary_post() — Retrieves the boundary post. Boundary being either the first or last post by publish date within the constraints specified by $in_same_term or $excluded_terms.

Inputs: $in_same_term (bool): Optional. Whether returned post 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. $start (bool): Optional. Whether to retrieve first or last post. Default true. $taxonomy (string): Optional. Taxonomy, if $in_same_term is true. Default ‘category’.

Returns array|null: Array containing the boundary post object if successful, null otherwise.

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…