I have an image field called
I want to render it in my tpl.php file with a custom image style. I am using the following code (from this thread) to do this:
<?php $view = field_view_field('node', $node, 'field_body_image', array('settings' => array('image_style' => 'thumbnail')));?> <?php print render($view); ?>
However, I want to display the URL of the image. How can I do that?
This thread has a solution, but it is for user photos and so you cannot specify a custom field.
Image Url Formatter is a module that can do this, but I would rather achieve it without an extra module.
This page has some advice, but apparently it is not best practice.