get_the_category_by_id


get_the_category_by_id ( $cat_ID )

Parameters:
  • (int) $cat_ID Category ID.
Returns:
  • (string|WP_Error) Category name on success, WP_Error on failure.
Defined at:

Description

Retrieve category name based on category ID.

Related Functions

get_the_category_list, get_the_category, the_category_id, get_the_category_rss, get_the_author_id

Top Google Results

User discussions

wpseek mobile