Fix for Print Image URL

  1. /**
  2.  *
  3.  * I'm trying render just the URL of an image from a field on a node in D7.
  4.  *
  5.  * The field is named "field_leaderboard_img" and the image style is "leaderboard"
  6.  *
  7.  */
  8.  
  9. <?php print image_style_url('leaderboard',$node->field_leaderboard_img['und'][0]['uri']; ?>

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.