Posted by djkentuckyham on February 21, 2013 at 3:29am
I feel dumb asking, but I need to put on my PHP training wheels again and ask. the below is contemplate template snippet that works just fine. It essentially outputs my field (to page) but I want to get the field title to display too. The field tile is either 'title' or 'description'. How do I write a foreach statement or equivalent to display associated titles/description? Any help would be appreciated.
<div class="field-item">
<?php
foreach ((array)$node->field_audio as $item) {
?>
<?php print $item['view'] ?>
<?php
}
?>
</div>Robert