Uncategorized · wordpress

how to get categories of post in wordpress?

must be in loop

foreach((get_the_category()) as $category) {
echo $category->cat_name . ‘ >> ‘;
}

Advertisements