Display multi values field as html list In my content type I have two multi values fields for images and embedded videos. Those fields are displayed in view.

I wanted to display elements of these fields in carousel. I found solution on google, but this solution only works when I have more than one items in field.

I didn't manage to do it for one element in the field.

I want to display those fields (no matter if field has one or more items) in html list.

Could somebody give me any advice?

[EDIT]

I try similar solution to @Shoaib Nawaz answers, but because of memory problems I can display values only from $row object.

The part with data of embedded videos look like this:

   [node_data_field_video_field_video_embed] =&gt; Array
        (
            [0] =&gt; Array
                (
                    [embed] =&gt; http://www.youtube.com/watch?v=XnflHoDIwFk
                    [value] =&gt; XnflHoDIwFk
                    [provider] =&gt; youtube
                    [data] =&gt; a:6:{s:20:"emvideo_data_version";i:5;s:23:"emvideo_youtube_version";i:5;s:8:"duration";i:831;s:8:"playlist";i:0;s:9:"thumbnail";a:1:{s:3:"url";s:43:"http://img.youtube.com/vi/XnflHoDIwFk/0.jpg";}s:5:"flash";a:3:{s:3:"url";s:32:"http://youtube.com/v/XnflHoDIwFk";s:4:"size";s:4:"1011";s:4:"mime";s:29:"application/x-shockwave-flash";}}
                    [status] =&gt; 1
                    [version] =&gt; 5
                    [title] =&gt; 
                    [description] =&gt; 
                    [duration] =&gt; 831
                )


The part of images looks like:

[node_data_field_photos_field_photos_fid] =&gt; Array
        (
            [0] =&gt; Array
                (
                    [fid] =&gt; 18515
                    [list] =&gt; 1
                    [data] =&gt; a:2:{s:3:"alt";s:30:"System stołów automatycznych";s:5:"title";s:0:"";}
                )


Screen with jcarousel with this stuff (worked only for fields with more than one items):



Now I need to find function to turn this data to html or code it all.
Try to do it with View field template. Edit your view and check for 'Theme information'. View will suggest some suitable field template according to your field and view's name. The most common template of fields is views-view-field.tpl.php

Other specific can be:

views-view-field--&lt;my-field&gt;.tpl.php,
views-view-field--&lt;my-view&gt;.tpl.php,
views-view-field--&lt;my-view&gt;--&lt;my-field&gt;.tpl.php,
views-view-field--&lt;my-display&gt;.tpl.php,
views-view-field--&lt;my-display&gt;--&lt;my-field&gt;.tpl.php,
views-view-field--&lt;my-view&gt;--&lt;my-display&gt;.tpl.php,
views-view-field--&lt;my-view&gt;--&lt;my-display&gt;--&lt;my-field&gt;.tpl.php


Here &lt;my-field&gt;, &lt;my-view&gt;, &lt;my-display&gt; are placeholders to replace actual field, view and display name.

Create any one of template in your active theme directory and
Try print_r(get_defined_vars()); in your template to know available variables/values.