category title in post code example
Example: category title in post
<?php
foreach((get_the_category()) as $category) {
echo $category->cat_name . ' ';
}
?>
<?php
foreach((get_the_category()) as $category) {
echo $category->cat_name . ' ';
}
?>