This might help you to get categories of particular post
$catList =get_the_category($post->ID);
foreach($catList as $single){
echo $single->cat_name;
}
You can also check from below links
This might help you to get categories of particular post
$catList =get_the_category($post->ID);
foreach($catList as $single){
echo $single->cat_name;
}
You can also check from below links