Render multiple values of a field in Drupal 7 I created a custom content type with a field with multiple values which I want to render as follows in my node--custom_content.tpl.php;

&lt;div class="CLASS" style="background: url('&lt;?php print file_create_url($node-&gt;field_creation_images['und'][0]['uri']);; ?&gt;')"&gt;&lt;/div&gt;


However, this renders only the first value of the field. Is there a foreach solution to my problem?
For multivalue field it makes the field value array like : 

// $node-&gt;field_creation_images['und'][0]['uri'];
// $node-&gt;field_creation_images['und'][1]['uri'];


So to print all values you need to use foreach : 

&lt;?php foreach ($node-&gt;field_creation_images['und'] as $uri) { ?&gt;
  &lt;div class="CLASS" style="background: url('&lt;?php print file_create_url($uri['uri']); ?&gt;')"&gt;&lt;/div&gt; 
&lt;?php } ?&gt;