WPDev.one
Core Function
View Source on Trac ↗

the_category_ID()

the_category_ID( mixed $display = true )

Returns or prints a category ID.

Parameters 0 required

Name / Type Description
$display
bool

Optional. Whether to display the output. Default true.

Return Value

(int)
Category ID.

Function Information

Since Version
0.71
Source File
wp-includes/deprecated.php
Advertisement