Create  in custom node.tpl I have a node with a lot of images and I want to convert this images in a &lt;ul&gt;-list. So I created a node.tpl-overwrite page and tried to alter my HTML, but with no result.

 &lt;div class="content"&lt;?php print $content_attributes; ?&gt;&gt;
    &lt;?php
      // We hide the comments and links now so that we can render them later.
      hide($content['comments']);
      hide($content['links']);
      print render($content['field_themes_body']);
    ?&gt;
    &lt;div class="theme_slider"&gt;
        &lt;ul&gt;
        &lt;?php
          dpm($content['field_themes_images']);
          //print theme_item_list($content['field_themes_images']);
        ?&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/div&gt;


It seems like the dpm of the $content['field_themes_image'] contains a whole array with all kinds of properties... Is it possible to filter out the images path only?

I've looked at the theme_item_list-function, but with no luck (or I did it wrong).
The following should work for you.

      hide($content['field_themes_images']);  
      &lt;div class="theme_slider"&gt;
        &lt;ul&gt;
        &lt;?php
          foreach ($content['field_themes_images']['#items'] as $key =&gt; $img)
          {
            print "&lt;li&gt;";
            print render($content['field_themes_images'][$key]); 
            print "&lt;/li&gt;";
          } 
        ?&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/div&gt;