By whisk2 on
Hi,
I'm trying to access the value of a cck field, and tried
$node -> field_title_hide['0']['value']
but no results.
Any suggestions?
Thanks!
Hi,
I'm trying to access the value of a cck field, and tried
$node -> field_title_hide['0']['value']
but no results.
Any suggestions?
Thanks!
Comments
You probably want $node ->
You probably want $node -> field_title_hide['und']['0']['value'].
Although the above will work
Although the above will work in this case, remember that, in general, it's best to use
field_get_items()so that you don't run into language problems.