0
This code returns me the categories of Magento but I could not make it increment the category url to be clickable and go to the page of the corresponding category. Can you help me?
<ul>
<?php
$obj = new Mage_Catalog_Block_Navigation();
$storeCategories = $obj->getStoreCategories();
Mage::registry('current_category') ? $currentCategoryId = Mage::registry('current_category')->getId() : $currentCategoryId='';
foreach ($storeCategories as $_category):
?>
<li>
<strong>
<?php echo "<a href=".$_category->getUrl().">" . $_category->getName(); "</a>"; ?>
</strong>
</li>
<?php endforeach; ?>
</ul>