get_categories


get_categories ( $args = '' )

Parameters:
  • (string|array) $args { Optional. Arguments to retrieve categories. See get_terms() for additional options.
See:
Returns:
  • (array) List of categories.
Defined at:

Description

Retrieve list of category objects.

If you change the type to 'link' in the arguments, then the link categories will be returned instead. Also all categories will be updated to be backward compatible with pre-2.3 plugins and themes.

Related Functions

get_category, wp_get_post_categories, get_category_link, get_category_parents, get_all_category_ids

Top Google Results

User discussions

wpseek mobile