Title: Help with caption please
Last modified: August 10, 2025

---

# Help with caption please

 *  Resolved [srbdesign](https://wordpress.org/support/users/srbdesign/)
 * (@srbdesign)
 * [10 months ago](https://wordpress.org/support/topic/help-with-caption-please/)
 * I’m having trouble getting the caption to work the way I wish. At the moment 
   I can only make the Alt text appear as the caption, despite ticking the boxes
   for using Title, Caption and Description elements in the settings, and filling
   out those fields for each image.
 * I’m using a blocks theme so really uncertain how and where to use the php filter
   function, to make all this happen.
 * Any help would be very grateful – other than this the plugin works brilliantly!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Arno Welzel](https://wordpress.org/support/users/awelzel/)
 * (@awelzel)
 * [10 months ago](https://wordpress.org/support/topic/help-with-caption-please/#post-18593035)
 * The Alt text is read directly from the HTML source code. However all other captions
   need to be read from the WordPress database if they are not present as attributes
   or figure captions in the HTML source code. To make this work, the image URLs
   need to be recognized as WordPress media files on your website, so the plugin
   knows which database entry has to be read. If you use a CDN for your images you
   may need to set the CDN options of Lightbox with PhotoSwipe accordingly, so the
   URL will be recognized correctly. See the CDN options in the “General” tab.
 *  Thread Starter [srbdesign](https://wordpress.org/support/users/srbdesign/)
 * (@srbdesign)
 * [10 months ago](https://wordpress.org/support/topic/help-with-caption-please/#post-18593520)
 * Thanks Arno, I’ve managed to overcome my issues by changing the theme template.
 * I was still seeing the same issues with the caption and description fields not
   being loaded, even with the database setting switched on. Once I realised that
   the data could be pulled from attributes in the HTML it was an easy fix to add
   those into the code.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Help with caption please’ is closed to new replies.

 * ![](https://ps.w.org/lightbox-photoswipe/assets/icon-256x256.png?rev=2906302)
 * [Lightbox with PhotoSwipe](https://wordpress.org/plugins/lightbox-photoswipe/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/lightbox-photoswipe/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/lightbox-photoswipe/)
 * [Active Topics](https://wordpress.org/support/plugin/lightbox-photoswipe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lightbox-photoswipe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lightbox-photoswipe/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [srbdesign](https://wordpress.org/support/users/srbdesign/)
 * Last activity: [10 months ago](https://wordpress.org/support/topic/help-with-caption-please/#post-18593520)
 * Status: resolved