Render fields url in tpl.php I have a content type (music) with fields(image,track,title). I used a soundmanager player to display my track with its tpl.php(bar.tpl.php).

I have tried to display url of the image field inside the (bar.tpl.php) but got only (http://localhost/mysite) using this code

&lt;div class="sm2-inline-element album-art"&gt;
 &lt;img src="&lt;?php $file = file_load($node-&gt;field_image_boss['und'][0]['fid']); 
  print file_create_url($file-&gt;uri); ?&gt;" /&gt;
&lt;/div&gt;
I use IMAGE URL FORMATTER module

Then on view's, click on your field, for formatter you can select Image URL. 



Then on your tpl.php file use &lt;?php print $fields["field_image_boss"]-&gt;content; ?&gt;

Note if you see that your field gets printed with extra markup such as &lt;span&gt;url&lt;/span&gt; instead of just url. Then you need to remove extra views container markups

On your view's edit page. Under Format click on the 1st settings and uncheck  Add views row classes and Add striping (odd/even), first/last row classes

Also, on the 2nd settings, uncheck Provide default field wrapper elements

Lastly, click on your field, and under STYLES SETTINGS make sure everything is unchecked