Title: Custom Fields Question
Last modified: August 19, 2016

---

# Custom Fields Question

 *  [sollynz](https://wordpress.org/support/users/sollynz/)
 * (@sollynz)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/custom-fields-question/)
 * HI there,
 * im building a catalog type website and im using Custom Fields to display the 
   products dimensions, info, textures etc
 * now this is my code
 *     ```
       <?php
       				$productImageLarge = get_post_meta($post->ID, 'productImageLarge', true);
       				$price = get_post_meta($post->ID, 'price', true);
       				$texture = get_post_meta($post->ID, 'texture', true);
       				$width = get_post_meta($post->ID, 'width', true);
       				$height = get_post_meta($post->ID, 'height', true);
       				$depth = get_post_meta($post->ID, 'depth', true);
       				$strap = get_post_meta($post->ID, 'strap', true);
       				$details = get_post_meta($post->ID, 'details', true);
       				$permalink = get_permalink();
       		?>
       ```
   
 * and im using
 * `<img src="/images/textures/<?php echo $texture; ?>_s.jpg" alt="<?php echo $texture;?
   >" class="texture" />`
 * to display the texture.
 * Now what do i need to do if i want to display more than one texture.
 * ive tried tried adding two custome fields with the key texture but it only shows
   the first one.
 * any help would be much appreciated 🙂
 * Thanks

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

 *  Thread Starter [sollynz](https://wordpress.org/support/users/sollynz/)
 * (@sollynz)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/custom-fields-question/#post-842824)
 * Bump,
 * anyone got any ideas ?
 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/custom-fields-question/#post-842827)
 * I have been unable to figure this out for myself… I think that it would likely
   involve a loop and iterating through an array.
 *  [omgitztrey](https://wordpress.org/support/users/omgitztrey/)
 * (@omgitztrey)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/custom-fields-question/#post-842831)
 * Why don’t you just do a texture2 and etc.?
 *  Thread Starter [sollynz](https://wordpress.org/support/users/sollynz/)
 * (@sollynz)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/custom-fields-question/#post-842833)
 * Sorry should have mentioned,
 * I have a list of about 30 textures, and each product has a differnt choice of
   textures,
 *  Thread Starter [sollynz](https://wordpress.org/support/users/sollynz/)
 * (@sollynz)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/custom-fields-question/#post-842835)
 * Solved 🙂
 * [http://theundersigned.net/2006/09/wordpress-how-to-custom-fields/](http://theundersigned.net/2006/09/wordpress-how-to-custom-fields/)
 * used that method listed there.

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

The topic ‘Custom Fields Question’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [sollynz](https://wordpress.org/support/users/sollynz/)
 * Last activity: [17 years, 9 months ago](https://wordpress.org/support/topic/custom-fields-question/#post-842835)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
