Skip Navigation

[Resolved] output multiple images with link to mediafile

This support ticket is created 7 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 6 replies, has 3 voices.

Last updated by jefM 7 years, 6 months ago.

Assisted by: Noman.

Author
Posts
#510746
innovatie-4---Cradle-to-Cradle-Platform.png

I am trying to: output multiple images with link to mediafile
In content template used following code

<a href="[types field='extra-foto' size='full' url='true'][/types]">[types field='extra-foto' size='thumbnail' align='left' resize='crop' separator=' '][/types]</a>

I visited this URL: hidden link

I expected to see: thumbs with links to it's mediafile (lightbox)

Instead, I got: thumbs link to all mediafiles instead of it's own.

#510821

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jef,

Thank you for contacting our support forum.

Is there a page setup that hosts all the images for this post ? As it stands wordpress will only link 1-1 images meaning the smaller image will link to its Larger counterpart.

In essence this is not possible unless you have a page that you can use that image to link to.

Thanks,
Shane

#513003

I want to link the smaller image (thumb) to i'ts larger format, like a gallery. Why would I need a page setup for that?

#513124

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jef,

I'm a bit confused as when I click on the image it already links to its larger file in a lightbox.

I'm not sure what you want to achieve exactly. Could you please clarify some more for me.

Thanks,
Shane

#513291

With adding the

[wpv-for-each field="extra-foto"]

before the link my problem was solved. Thanks.

#513316

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello Jef,

I am going to takeover Shane's tickets because he is on leave.

Great to hear that you have resolved this issue. Can you please kindly mark this current ticket as resolved if all is good now?

Have a great day.
Thank you

#513334

oké thanks.