I'm using Views 3.0 and I'm trying to access a field which allows users to upload 3 photos. When I type print $fields['field_productshots']->content; it displays all 3 product photos. Is there a way to limit it to just the first image?


1 Answer 1


When editing the view, there's an option for Multiple field settings. By default view is going to set it up to Display All starting at zero.

You can easily change it to display 1 starting at zero. This will only show the 1st image now.

Hope this helps.

  • Thanks! So there's really no code version for this is there? It all has to go through the Drupal CMS?
    – enchance
    Commented Jun 12, 2011 at 3:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.