Ouput Node Reference Field Title in Drupal 7 When creating templates in Drupal 6 I can output just the title for the value of a node reference field like so:

echo $node-&gt;field_example[0]['safe']['title'];


I'm trying to do the same thing in Drupal 7 - I've tried many variations like the examples below but the output is always blank or throws an error:

print $content-&gt;field_example['und']['0']['node']['title'];

print $content['field_example']['#object']['field_example']['und']['0']['node']['title'];


Any help on how to grab the 'title' value is much appreciated.
print $field_example[0]['node']-&gt;title;


This ended up being the syntax needed to pull just the title from the value of a node reference field.