Dapatkan Posting Kategori di WordPress
echo '<p>'. get_the_category( $id )[0]->name .'</p>';
Weary Wildebeest
echo '<p>'. get_the_category( $id )[0]->name .'</p>';
$active_categories = get_the_category();