I'm using the following code to display the subcategory of specific categories in a hardcoded mega menu:
<?php $children = Mage::getModel('catalog/category')->getCategories(3); foreach ($children as $category): $category = Mage::getModel('catalog/category')->load($category->getId()); echo '<li><a href="' . $category->getUrl() . '">' . $category->getName() . '</a></li>'; endforeach;?>
This works great, but some of these subcategories has subcategories of their own, and I would like to display those too. How do I modify the above to include another level?