Skip Navigation

[Resolved] Creating multiple galleries with lightbox

This support ticket is created 4 years, 3 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+01:00)

This topic contains 17 replies, has 2 voices.

Last updated by NellyK1283 4 years, 2 months ago.

Assisted by: Nigel.

Author
Posts
#1483109
screenshot.jpg

Yes, I did 🙂

Please check the attached image if the status should be as it is.

Thank you!

#1484835

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

OK, a small hiccup.

Normally if no value has been saved for a custom field then the key would not exist for it, which is what the code I offered was testing for.

But I looked in the database and all of your posts have the key present, even when there is no value (I suspect it is something particular to the image field which I'd not noticed before), and so I changed the test to see if the image field exists but is not an empty string.

That now works.

Sorry it has taken a long time to arrive at the solution. The original problem with the wpv-conditional shortcode arises from a technical limitation in PHP about the length of the content inside the conditional shortcode, otherwise it would have been a perfectly valid solution.

#1484925

My issue is resolved now and everything works great. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.