title: Magento 1.9: How to get Subcategories of specific Category?
body: <p>I am using the following block in my Magento CMS for home site:</p>
  
  <pre><code>{{block type="catalog/product_list" name="catalog_list" category_id="1420" template="catalog/product/listStart.phtml"}}
  </code></pre>
  
  <p>How can I just get an output of all subcategories of the category_id as specified in the block (id 1420 in this case).</p>
  
  <p>So far I have the following code:</p>
  
  <pre><code>&lt;?php
  $_category = $this-&gt;getCurrentCategory();
  $collection = Mage::getModel('catalog/category')-&gt;getCategories($_category-&gt;entity_id);
  $helper = Mage::helper('catalog/category');
  ?&gt;
  &lt;div class="category-products"&gt;
  &lt;div id="carousel"&gt;
      &lt;ul class="products-in-row"&gt;
          &lt;?php $i=0; foreach ($collection as $cat): ?&gt;
              &lt;li class="item"&gt;
                  &lt;?php echo $cat-&gt;getName();?&gt;
              &lt;/li&gt;
          &lt;?php endforeach ?&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p>I'm getting all subcategories of the main category only.</p>