Get single image from custom fields made with WCK custom fields creator
Here is the code that worked. I had to get rid of the foreach loop and reference the array directly: <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); $productimgs = get_post_meta( $post->ID, ‘productimg’, true ); $image_color = $productimgs[0][‘product-image-color’]; $image_bw = $productimgs[0][‘product-image-bw’]; $imgclr = wp_get_attachment_image_src( $image_color, ‘grid-large’ ); $imgbw = wp_get_attachment_image_src( $image_bw, … Read more