Now I feel stupid asking this, I had this answer 3 days ago, changed a part of my code and now have completely forgotten how to pull the main category name which should be easy enough.
I have
<div class="footer-links-container">
<?php $categoryId =3; ?>
<div class="footer-block-title">
<?php echo "<h3>Scotch Whisky</h3>" ;?>
</div>
<?php $children = Mage::getModel('catalog/category')->load($categoryId)->getChildrenCategories(); ?>
<div class="custom-footer-content">
<ul>
<?php foreach ($children as $subCategory){
echo '<li><a href="' . $subCategory->getUrl() . '">' . $subCategory->getName() . '</a></li>';
}
?>
</ul>
<div class="clear"> </div>
</div>
</div>
What is it I do again to pull the actual category name? I tried echo $categoryId->getName(); but that seemed to throw me an error.