• 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)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom Fields Question’ is closed to new replies.