Obtenga categorías solo asignadas para publicar WordPress
<?php
$categories = get_the_category();
//echo '<pre style="text-align: left;">'.print_r($categories, true).'</pre>';
foreach( $categories as $category) {
$name = $category->name;
$category_link = get_category_link( $category->term_id );
?>
<a href="<?php echo $category_link; ?>"><?php echo $name; ?></a>
<?php } ?>
Tony Harris