Title: Display multiple Images using Custom Fields
Last modified: August 20, 2016

---

# Display multiple Images using Custom Fields

 *  [doubleudet](https://wordpress.org/support/users/doubleudet/)
 * (@doubleudet)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/display-multiple-images-using-custom-fields/)
 * I am using Custom Fields to define and image. “Thumbnail” In the example here,
   I have 5 ‘Thumbnails’. I have 5 Custom Fields added to the post. Each has a different
   Image/Image Path assigned to it. When it display, it is only showing the first
   Image/Image Path 5 different times.
 * Here is my code. I know this is probably something simple that I am overlooking.
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [doubleudet](https://wordpress.org/support/users/doubleudet/)
 * (@doubleudet)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/display-multiple-images-using-custom-fields/#post-2258345)
 * Sorry, I’m confused… How come I see some people pasting code? Just curious. I
   don’t care, just want an even playing field…
 * Anyhoo, my question. Using Brave-Zeenat theme.
 * I am using Custom Fields to define and image. “Thumbnail” In the example here,
   I have 5 ‘Thumbnails’. I have 5 Custom Fields added to the post. Each has a different
   Image/Image Path assigned to it. When it display, it is only showing the first
   Image/Image Path 5 different times.
 * Here is my code (Pastebin as requested). I know this is probably something simple
   that I am overlooking.
 * [http://pastebin.com/GhM80biw](http://pastebin.com/GhM80biw)
 *  [zartgesotten](https://wordpress.org/support/users/wearitwell/)
 * (@wearitwell)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/display-multiple-images-using-custom-fields/#post-2258347)
 * As far as I can see you’re calling the SAME custom field over and over. Check
   the NAMES of your custom fields and call them by their different names.
 *  Thread Starter [doubleudet](https://wordpress.org/support/users/doubleudet/)
 * (@doubleudet)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/display-multiple-images-using-custom-fields/#post-2258356)
 * D’oh! You’re right. My thought was that the PHP code was taking care of dynamically
   numbering the Custom filed names. Making the simple change you suggested did 
   the trick. Brave-Zeenat is a great theme. The documentation is kind of lacking
   though.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Display multiple Images using Custom Fields’ is closed to new replies.

## Tags

 * [custom fields](https://wordpress.org/support/topic-tag/custom-fields/)

 * 3 replies
 * 2 participants
 * Last reply from: [doubleudet](https://wordpress.org/support/users/doubleudet/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/display-multiple-images-using-custom-fields/#post-2258356)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
