Ordering multiple image field type
-
Hi guys,
I got multiple photos for my products.
So I have 6 image fields.
The first one is supposed to be the main and the 5 next are secondary.
Each time I update my custom post type, the fields get mixed in the front end and I can’t get the right first image.I’m using :
$photo = $data['wpcf-photo']; for($i=1;$i<=count($photo)-1;$i++) { echo '<a class="fancybox" rel="group" href="'.$photo[$i].'"><img src="'.$photo[$i].'" alt="" style="width:140px;height:auto;margin:0 4px;" width="140" /></a>'; }
Have you the same issue?
How can I fixe this?Thanks
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Ordering multiple image field type’ is closed to new replies.