Get caption as prettyPhoto description
|Closed||26250||Normal||Frontend Builder WP|
In frontend builder, you can add an image gallery that uses prettyPhoto.js to create an image gallery pop-up. I would like to know how I can use the caption/title/alt (which can all be set in the standard media library) to display a description below the image.
I suspect I might have to alter the jquery.prettyphoto.js with some kind of get_post function (I’ve found this a general starting point: https://wordpress.org/support/topic/get-title-alt-or-caption-from-media-library-and-insert-into-them…), but I’m at a loss at how to implement this correctly.