title: How to load a Custom PHP Magento Block inside a template file
body: <p>I've created a Custom Block based on this tutorial 
  <a href="http://blog.magikcommerce.com/how-to-show-most-viewed-best-selling-products-in-magento-store">http://blog.magikcommerce.com/how-to-show-most-viewed-best-selling-products-in-magento-store</a></p>
  
  <p>I would like to call the Block from my home.phtml template file.</p>
  
  <p>I call my static blocks from:</p>
  
  <pre><code>&lt;?php
  $helper = Mage::helper('cms');
  $source = Mage::getModel('cms/block')-&gt;load('my-block');
  $processor = $helper-&gt;getPageTemplateProcessor();
  $html = $processor-&gt;filter($source-&gt;getContent());
  echo $html;
  ?&gt;
  </code></pre>
  
  <p>And it works like a charm, of course!
  '
  But how can I load dynamic blocks, in my case,  inside template files.</p>
  
  <p>My bestseller.phtml file is:</p>
  
  <pre><code>app/design/frontend/default/default/template/catalog/product/bestseller.phtml
  </code></pre>
  
  <p>And my class is:</p>
  
  <pre><code>Mage_Catalog_Block_Product_Bestseller 
  </code></pre>