Trying to access node content with PHP I have the following code to load a different node into my homepage:

&lt;?php $node = node_load(2); ?&gt;
&lt;div class="modal hide fade" id="security"&gt;
    &lt;div class="modal-header"&gt;
      &lt;button class="close" data-dismiss="modal"&gt;×&lt;/button&gt;
      &lt;h3&gt;&lt;?php echo $node-&gt;title; ?&gt;&lt;/h3&gt;
    &lt;/div&gt;
    &lt;div class="modal-body"&gt;
      &lt;?php render( $node-&gt;content ); ?&gt;
    &lt;/div&gt;
    &lt;div class="modal-footer"&gt;
      &lt;a href="#" class="btn" data-dismiss="modal"&gt;Close&lt;/a&gt;
    &lt;/div&gt;
&lt;/div&gt;


The title displays, but the content doesn't. I get the error Notice: Undefined property: stdClass::$content in include()

Based on what I read here I feel this should work. What do I need to do to make the node content display? (it's just a basic page w/ title and body)
The node's content isn't built when you load the node, you need to invoke it manually with node_build_content():

$node = node_load(2);
node_build_content($node, $view_mode);

// You now have access to $node-&gt;content