i use taxonomy term fields. module entity API enabled. i want to output term field value. the following code

dsm($node->field_myfield['und'][0]['taxonomy_term']->field_type['und'][0]['value']);

works in devel PHP block, but not in views PHP field.

print($data->nid);
$node=node_load($data->nid);
print ($node->field_myfield['und'][0]['taxonomy_term']->field_type['und'][0]['value']);

i can't access array element 'taxonomy_term'. can you help me?

Comments

arpas’s picture

Title: term field problem » term field problem [probably solved]
Category: bug » support

probably the problem is my narrow experience with views 3 and taxonomy. I found what taxonomy in views require relationship. any suggestions?

Liam Morland’s picture

Issue summary: View changes
Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.