I’m trying to display links to the categories of a product. What I have to start with is $_product which is an instance of class Mage_Catalog_Model_Product. I can display the category url but the name is missing. Anybody know why?
$_categories = $_product->getCategoryCollection();
foreach($_categories as $_category): ?>
<a href="<?php echo $_category->getUrl(); ?>">
<?php echo $_category->getName(); ?>
<?php endforeach ?>