Zdobądź kategorię WP
//get category name foolproof
echo (!empty(get_the_category($post)) ? get_the_category($post)[0]->name : '');
Andrew Lautenbach
//get category name foolproof
echo (!empty(get_the_category($post)) ? get_the_category($post)[0]->name : '');
category_description( int $category )