Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get category name by id wordpress

get_cat_name( int $cat_id )

* Return
(string) Category name, or an empty string if the category doesn't exist.

* Example
<?php echo get_cat_name( 4 );?>

// returns the name for the category with the id ‘4’
Source by developer.wordpress.org #
 
PREVIOUS NEXT
Tagged: #category #id #wordpress
ADD COMMENT
Topic
Name
8+5 =