Skip to main content
2 of 3
added 257 characters in body
Anil Sagar
  • 12.2k
  • 2
  • 31
  • 54

Since you are rendering a field , you can use below code

<?php
$image = field_get_items('node', $node, 'field_history_image');
$output = field_view_value('node', $node, 'field_history_image', $image[0]);
print render($output);
?>

OR

$view = field_view_field('node', $node, 'field_image');
print render($view);
Anil Sagar
  • 12.2k
  • 2
  • 31
  • 54