Skip to main content
deleted 3 characters in body
Source Link
No Sssweat
  • 31.6k
  • 14
  • 55
  • 91

You can do something like this:

$referenced_titles = array(); 

foreach ($item2 as $indice => $values) {

  $entity_field[]['value'] = $values->field_nombre_2['und'][0]['target_id'];
  // use node_load($nid) to load the node. 
  $referenced_node = node_load($values->field_nombre_2['und'][0]['target_id']);
  $referenced_titles[] = $referenced_node->title;

}

You can do something like this:

$referenced_titles = array(); 

foreach ($item2 as $indice => $values) {

  $entity_field[]['value'] = $values->field_nombre_2['und'][0]['target_id'];
  // use node_load($nid) to load the node. 
  $referenced_node = node_load($values->field_nombre_2['und'][0]['target_id']);
  $referenced_titles[] = $referenced_node->title;

}

You can do something like this:

$referenced_titles = array(); 

foreach ($item2 as $indice => $values) {

  // use node_load($nid) to load the node. 
  $referenced_node = node_load($values->field_nombre_2['und'][0]['target_id']);
  $referenced_titles[] = $referenced_node->title;

}
Source Link
No Sssweat
  • 31.6k
  • 14
  • 55
  • 91

You can do something like this:

$referenced_titles = array(); 

foreach ($item2 as $indice => $values) {

  $entity_field[]['value'] = $values->field_nombre_2['und'][0]['target_id'];
  // use node_load($nid) to load the node. 
  $referenced_node = node_load($values->field_nombre_2['und'][0]['target_id']);
  $referenced_titles[] = $referenced_node->title;

}