Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Reply To: [Waiting for user confirmation] Creating a simple image gallery

$
0
0

Hello Caridad,
Thanks for your reply.

<a class="thickbox" rel="my-gallery-[wpv-post-id]" href="[types field="event-main-image" raw="true"][/types]">[types field="event-main-image" size="thumbnail"][/types]</a>
  
[wpv-for-each field="wpcf-event-images"]
  <a class="thickbox" rel="my-gallery-[wpv-post-id]" href="[types field="event-images" raw="true"][/types]"></a>
[/wpv-for-each]

Actually this code is mixing all images for the post from different fields. For example I have 1 image in event-main-image + 3 images in event-images, my code is displaying all 4 images of current post-id from both fields (event-main-image and event-images). I want thickbox to display images only from field-2 which is event-images.


Viewing all articles
Browse latest Browse all 20145

Trending Articles