I'm trying to get the alt title of a picture using the entity_metadata_wrapper.
My code is as follows:
$file = file_load($image["fid"]); $file_wrapper = entity_metadata_wrapper('file', $file);
The $image is one of the images i got by using
field_get_items("node", $node, "field_images")
If i try to get the alt text from the wrapper object, the result is null, although the alt text was set while creating the node.
outputs an EntityValueWrapper with type "text" and data "null".
I don't understand why this is not working, is there any error in my thinking?