PHP Code for Rendering a Drupal Page with Hidden Fields


<?php
$node_id = 131; // Set your node ID to whatever.
$node = node_load($node_id); // loads the node object for that node.
$my_node = node_view($node, "full"); // converts the node object to an array of elements.
$my_node["field_my_field"]["#access"] = 0; // Turns off access to the offending field so it doesn't display.
print (drupal_render($my_node)); // renders the array.
?>