WordPress at a glance

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

cat_is_ancestor_of()

Check if a category is an ancestor of another category.

get_adjacent_post()

Gets the object of the adjacent (next or previous) post.

get_ancestors()

Get an array of ancestor IDs for a given object.

get_category_parents()

Retrieve category parents with separator.

get_next_post()

Retrieves the next post that is adjacent to the current post. Return post object.

get_post_ancestors()

Retrieve ancestors of a post.

get_previous_post()

Retrieves the previous post that is adjacent to the current post. Return post as object.

get_term_children()

Merge all term children into a single array of their IDs.