post title and category wordpress 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 . ' ';
}
?>