Relations (of posts terms...) (tag)

cat_is_ancestor_of()

Checks if the specified category is a child of another specified category (all nesting levels are checked). Conditional tag.

get_adjacent_post()

Gets the object of the adjacent (next or previous) post from the specified taxonomy (the default is category).

get_ancestors()

Gets the IDs of the parent elements of the specified object (page, taxonomy, category).

get_category_parents()

Gets a list of parent categories of the current category. The list is displayed in hierarchical order.

get_next_post()

Retrieves the next post (as object) from the specified taxonomy (the default is category).

get_post_ancestors()

Gets the IDs of all parent posts for the specified one as an array.

get_previous_post()

Retrieves the previous post (as object) from the specified taxonomy (the default is category).

get_term_children()

Gets all child elements of the specified taxonomy element (categories) as an array.