is_category ( $category = '' )

  • (int|string|int[]|string[]) category Optional. Category ID, name, slug, or array of such to check against. Default empty.
  • (bool)
Defined at:


Determines whether the query is for an existing category archive page.If the $category parameter is specified, this function will additionally check if the query is for one of the categories specified. For more information on this and similar theme functions, check out the [Conditional Tags]( article in the Theme Developer Handbook.

Related Functions

in_category, has_category, get_category, the_category, wp_insert_category

Top Google Results

User discussions

wpseek mobile