Inline -Kategorie zeigen

<?php
$categories = get_the_category();
$cat = '';
foreach ($categories as $category) {
    $cat .= $category->cat_name . ', ';
}
$cat = substr($cat, 0, -2);
echo $cat;
?>
Happy Mood