Here I wanted to show you how to build a custom Magento category listing block that you can use on your own Magento store. We will go over each step at getting a category listing of your magneto categories and even a sub category listing.
Here is the finished code for your new category listing block.
$cats = Mage::getModel('catalog/category')->load(2)->getChildren();
$catIds = explode(',',$cats);
<?php foreach($catIds as $catId): ?>
$category = Mage::getModel('catalog/category')->load($catId);