get the category wp
//get category name foolproof echo (!empty(get_the_category($post)) ? get_the_category($post)[0]->name : '');
wordpress get category description
category_description( int $category )