Forums
(@shanstafari)
15 years, 7 months ago
To make sourcelab’s multiple-category solution more flexible, try:
<?php $category = get_the_category(); $last_category = end($category); echo $last_category->cat_name; ?>