Drupal Association members fund grants that make connections all over the world.
I'm working on Drupal 7 with a custom content type from node--content_type.tpl.php. I try to output an image from an image field with a custom code. It's sad that I only know how to output the original image from field/image directory. This is the code I used:
<?php global $base_url; echo "<img src='".$base_url."/sites/default/files/field/image/".$node->field_image['und']['filename']."'>"; ?>
What I want to do here is output the thumbnail image of that original image. For example the thumbnail image from this directory: sites/default/files/styles/medium/public/field/image
Could it be possible? Sorry for my lack of PHP and Drupal knowledge, I'm new to them.
Any help would be appriciated!