Print ALT tag from an Image FIeld in a Custom Field Template I'm attempting to create a custom field template for an image field with mutliple values. My field name is field_photo_slidshow

My field template name is: field--field-photo-slideshow.php and I've got it coded like this to produce a Flexslider slideshow:

&lt;div class="&lt;?php print $classes; ?&gt;"&lt;?php print $attributes; ?&gt;&gt;
&lt;?php if (!$label_hidden): ?&gt;
&lt;div class="field-label"&lt;?php print $title_attributes; ?&gt;&gt;&lt;?php print $label ?&gt;:&amp;nbsp;    &lt;/div&gt;
&lt;?php endif; ?&gt;
&lt;div class="flexslider"&lt;?php print $content_attributes; ?&gt;&gt;
&lt;ul class="slides"&gt;
&lt;?php foreach ($items as $delta =&gt; $item): ?&gt;
&lt;li class="field-item &lt;?php print $delta % 2 ? 'odd' : 'even'; ?&gt;"&lt;?php print $item_attributes[$delta]; ?&gt;&gt;&lt;?php print render($item); ?&gt; 
&lt;!-- &lt;p class="flex-caption"&gt;Caption&lt;/p&gt; --&gt;
&lt;/li&gt;
&lt;?php endforeach; ?&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;


And this does what I want so far -- creates and unordered list of the rendered images. But now, I want to add an optional caption, derived from the Image fields alt tag -- but I have no idea how to render the ALT tag from a given image in the above code in the field tempalte. That part of the code, in theory, would something like this:

&lt;?php foreach ($items as $delta =&gt; $item): ?&gt;
&lt;li class="field-item &lt;?php print $delta % 2 ? 'odd' : 'even'; ?&gt;"&lt;?php print $item_attributes[$delta]; ?&gt;&gt;&lt;?php print render($item); ?&gt; 
&lt;p class="caption"&gt;ALT TEXT FROM IMAGE FIELD&lt;/p&gt;
&lt;/li&gt;
&lt;?php endforeach; ?&gt;


Doe anyone have any idea out to print out that alt text in the field template code?

thank you,
Nathaniel
If you install Devel module and use dpm($item); in your code, you will see the structure of $item. Alt is in $item['#item']['alt'].

See for example Modify tpl file to print the path to the image instead of the image itself?.