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

Retrieves 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