I created a custom content type named projects. I'm using the node title and node body and created three fields for status, coordinator, and client. I tried creating a tpl file so I can loop through the nodes in the view and style them accordingly. This may be more of a php question I'm not sure but my code is below. I tried at a minimum to render the title and the body with no success. It keeps giving me the following error:
warning: Invalid argument supplied for foreach() line 11
Any help will be appreciated.
<?php foreach ($nodes as $node)
print '<strong>'.$node->node_title.'</strong><br />';
print $node->node_body.'<br /><br />';