I had a main category (parent category) whose id = 10. I want to echo just its sub-categories. How can I do that?
This code may help if you want to get child category of every current category
getCurrentCategory();
$currentCategoryId= $_category->getId();
$children = Mage::getModel('catalog/category')->getCategories($currentCategoryId);
foreach ($children as $category)
{
echo $category->getName(); // will return category name
echo $category->getRequestPath(); // will return category URL
}
?>