I have a content type in which i had added image field. I can successfully displaying my body content having multiple instances by using $body = field_get_items('node',$node, 'body');
foreach ($body as $body) {
print $body['value'];
but unable to print bmy image field by this method>
Asked
Active
Viewed 94 times
0

nomeer
- 205
- 3
- 13
1 Answers
0
Got the solution by using `$image = field_get_items('node',$node, 'field_name'); foreach ($image as $key=>$value) { $output = field_view_value('node', $node, 'field_name', $image[$key]);
print render ($output);`

nomeer
- 205
- 3
- 13