Guest User

Untitled

a guest
May 23rd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. If you want to have your image display in a template such as node.tpl.php, the following code will print the image and image title for a CCK image field called field_related_images:
  2.  
  3. <?php print $node->field_related_images[0]['view']; ?>
  4. <?php print $node->field_related_images[0]['title']; ?>
Add Comment
Please, Sign In to add comment