How to print formatted contents of Viewfield in a custom template? I am having trouble printing the contents of two Viewfields in my custom node template. They are two separate blocks in the same overall View. I have tried the following, but it did not print anything:

&lt;?php echo $node-&gt;field_fieldname1[0]['view']; ?&gt;
&lt;?php echo $node-&gt;field_fieldname2[0]['view']; ?&gt;


When I add 

&lt;?php print_r($node); ?&gt;


to my template, it returns the following for the two Viewfields in question:


  [field_fieldname1] => Array ( [und] => Array ( [0] =>
  Array ( [vname] => myviewname|block_1 [vargs] => ) ) )
  
  [field_fieldname2] => Array ( [und] => Array ( [0] => 
  Array ( [vname] => myviewname|block_2 [vargs] => ) ) )


Can anyone direct me on how I can print the contents of these Viewfields in my tpl file?

Thanks!
I used the following code:

&lt;?php print views_embed_view('myviewname','block_1', $node-&gt;nid); ?&gt;
&lt;?php print views_embed_view('myviewname','block_2', $node-&gt;nid); ?&gt;


And the view's info is printing just fine now in my tpl files. Hope this can help someone in the future.

Thanks for Worldfallz on the Drupal forum for this suggestion!
https://drupal.org/node/2075411#comment-7800227