get_boundary_post


get_boundary_post ( $in_same_term = false, $excluded_terms = '', $start = true, $taxonomy = 'category' )

Parameters:
  • (bool) in_same_term Optional. Whether returned post should be in the same taxonomy term. Default false.
  • (int[]|string) excluded_terms Optional. Array or comma-separated list of excluded term IDs. Default empty.
  • (bool) start Optional. Whether to retrieve first or last post. Default true.
  • (string) taxonomy Optional. Taxonomy, if `$in_same_term` is true. Default 'category'.
Returns:
  • (array|null) Array containing the boundary post object if successful, null otherwise.
Defined at:

Description

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`.

Related Functions

get_boundary_post_rel_link, get_blog_post, get_next_post, get_body_class, get_previous_post

Top Google Results

User discussions

wpseek mobile