I have a content type (a) referenced to another content type (b) by url widget, how can I get the ID of the referenced node (b)?
Thanks.
You can get node id using :
$nid = $node->field_reference['und'][0]['nid'];
And you can check it out from this:
drupal_set_message($nid);
$build
variable. Please read the doc in the page referenced above. – Countzero Apr 4 '12 at 15:25