Get Category name from Post ID
$category_detail=get_the_category('4');//$post->ID foreach($category_detail as $cd){ echo $cd->cat_name; }
How to Get Category name from Post ID in wordpress?
Get Category name from Post ID
$category_detail=get_the_category('4');//$post->ID foreach($category_detail as $cd){ echo $cd->cat_name; }
wpcodekit Website Designers is one of the best website designing company in punjab 2020. We create beautiful looking, fast and secure websites.We are create professional websites in punjab since 2016.