Embed block into a custom views template I created a custom views template that I have called views-view--page.tpl.php. Now I would like to add a block into the template file.

In my page template file I was able to render a region and do this:

&lt;?php print render($page['leftsidebar']); ?&gt;


But it seems like this will not work for a views template. I am not the best with PHP so any help would be great!

I'm using Drupal 7.
Using the answer given to me in the comments by @subhojit777 I was able to call it up using this code:

&lt;?php 
  $block = block_load('MODULE_NAME', 'DELTA'); 
  $output =      drupal_render(_block_get_renderable_array(_block_render_blocks(array($block)))); 
  print $output; 
?&gt;


I don't know if this is the best way, but it's working for now. :)