Hi, how can I access content taxonomy field value name/names?
print_r($node->field_country[0]['name']); - doesn't work

I'd really appreciate your response

Comments

xjm’s picture

Status: Active » Fixed

Try:

print $node->field_myfield[0]['view'];

Or:

$term = taxonomy_get_term($node->field_myfield[0]['value']);
print $term->name;

Status: Fixed » Closed (fixed)

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