get_category_parents


get_category_parents ( $id, $link = false, $separator = '/', $nicename = false, $deprecated = array() )

Parameters:
  • (int) id Category ID.
  • (bool) link Optional. Whether to format with link. Default false.
  • (string) separator Optional. How to separate categories. Default '/'.
  • (bool) nicename Optional. Whether to use nice name for display. Default false.
  • (array) deprecated Not used.
Returns:
  • (string|WP_Error) A list of category parents on success, WP_Error on failure.
Defined at:
Change Log:
  • 4: .

Description

Retrieves category parents with separator.

Related Functions

get_category_by_path, get_category_children, get_categories, get_category_link, get_the_category_rss

Top Google Results

User discussions

wpseek mobile