Posted by bartekfly on June 7, 2009 at 10:26am
Jump to:
| Project: | Content Taxonomy |
| Version: | 6.x-1.0-rc1 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Hi, how can I access content taxonomy field value name/names?
<?php
print_r($node->field_country[0]['name']);
?>I'd really appreciate your response
Comments
#1
Try:
<?phpprint $node->field_myfield[0]['view'];
?>
Or:
<?php$term = taxonomy_get_term($node->field_myfield[0]['value']);
print $term->name;
?>
#2
Automatically closed -- issue fixed for 2 weeks with no activity.