Submitted by Mathew Branwell on Tue, 03/20/2012 - 21:29
Drupal7's page.tpl.php uses $page['content'] variable to print all the stuff. So if you want to remove <?php print render($page['content']); ?> and instead want to print content fields separately, then take note of the following.
Instead of removing print render($content) you can use the hide() function to remove the field from $content and then the render() function to print our field somewhere else in the template.
For example, for an image field called field_image_captures use hide() to prevent it from printing out in $content:
<?php
hide($content['field_image_captures']);
Recent comments