Reputation: 43
I currently have a custom content type of type my article in which i have a slider attached using node-tpl.php the slider is working fine my problem is that i have image fields in this content type and i want them to be rendered in the
so that they are displayed inside the slider i cant seem to add the php snippet to theFull php snippet`
<?php
$i=0;
$array=$html->find('li');
?>
<?php
foreach ($array as $value){
print render($content['field_images'][i]);
$i=i+1;}
?>
Upvotes: 1
Views: 531
Reputation: 27033
The following can get you started.
foreach($content['field_images']['#items'] as $key => $value) {
print render($content['field_images'][$key]);
}
Upvotes: 1