Title: display caption
Last modified: September 11, 2018

---

# display caption

 *  Resolved [lienkhuong](https://wordpress.org/support/users/lienkhuong/)
 * (@lienkhuong)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/display-caption/)
 * Hi, great plugin
    how to display caption on photoswipe?
 * Thanks

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

 *  Plugin Author [Arno Welzel](https://wordpress.org/support/users/awelzel/)
 * (@awelzel)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/display-caption/#post-10676102)
 * Captions are not supported yet by the plugin. This will be added with the next
   update.
 * Sorry – there was a misunderstanding. Of course captions are supported.
 * You have to add the caption within the images itself as “description”. These 
   will be used for the lightbox as well.
 * However – when using captions in galleries, there seems to be bug. I’ll fix this
   with the next update.
    -  This reply was modified 7 years, 8 months ago by [Arno Welzel](https://wordpress.org/support/users/awelzel/).
    -  This reply was modified 7 years, 8 months ago by [Arno Welzel](https://wordpress.org/support/users/awelzel/).
    -  This reply was modified 7 years, 8 months ago by [Arno Welzel](https://wordpress.org/support/users/awelzel/).
 *  Thread Starter [lienkhuong](https://wordpress.org/support/users/lienkhuong/)
 * (@lienkhuong)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/display-caption/#post-10676126)
 * I try add text to description but it not show
 * thanks, i hope it will update short time
    -  This reply was modified 7 years, 8 months ago by [lienkhuong](https://wordpress.org/support/users/lienkhuong/).
 *  Plugin Author [Arno Welzel](https://wordpress.org/support/users/awelzel/)
 * (@awelzel)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/display-caption/#post-10676142)
 * I just realized, that the captions in standard WP galleries should already work
   fine. Only “Cleaner Gallery” seems to be a problem. I already have a fix for 
   that which I’ll be published within the next 24 hours.
 * What gallery plugin do you use?
 *  Thread Starter [lienkhuong](https://wordpress.org/support/users/lienkhuong/)
 * (@lienkhuong)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/display-caption/#post-10676719)
 * Hi, i using standard WP galleries and betheme
 * you can check this link: [https://midtown.phumyhung.com.vn/test/](https://midtown.phumyhung.com.vn/test/)
 * Thanks
 *  Plugin Author [Arno Welzel](https://wordpress.org/support/users/awelzel/)
 * (@awelzel)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/display-caption/#post-10679193)
 * Unfortunately, the is not the HTML from a standard WordPress gallery and therefore
   the Lightbox script can not recognize the image captions in it.
 * Original WP gallery HTML:
 *     ```
       <dt class='gallery-icon portrait'>
         <a href='...' .../>
           <img ... />
         </a>
       </dt>
       <dd class='wp-caption-text gallery-caption' id='...'>... caption here ...</dd>
       ```
   
 * However in your case, the structure is different with additional `div` elements
   around the image:
 *     ```
       <dt class='gallery-icon portrait'>
         <div class='image_frame scale-with-grid'>
           <div class='image_wrapper'>
             <a href='...' .../>
               <img ... />
             </a>
           </div>
         </div>
       </dt>
       <dd class='wp-caption-text gallery-caption' id='...'>... caption here ...</dd>
       ```
   
 * Looks like “betheme” generates a different gallery output.
 * This means I have to intercept the gallery generation to add the caption at some
   place where the Lightbox script can read it. This will take a bit longer, sorry.
 *  Thread Starter [lienkhuong](https://wordpress.org/support/users/lienkhuong/)
 * (@lienkhuong)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/display-caption/#post-10679478)
 * Hix..Thanks
 *  [bighead73](https://wordpress.org/support/users/bighead73/)
 * (@bighead73)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/display-caption/#post-10734072)
 * Hi Arno,
 * I very much appreciate your work. Plugin is great. I’ve been looking for him 
   for a long time because I like PhotoSwipe, and I finally found him. Nice.
 * Would it be possible to implement showing captions imaging in conjunction with
   the Justifed Gallery plug-in? With this plugin show only one image caption from
   the whole gallery. Randomly. Sometimes first caption. Sometimes other caption.
   Everthing others all works great.
 * Thx for great job.
 * Part of code from Justified Gallery
    <figcaption class=”dgwt-jg-caption”><span
   class=”dgwt-jg-caption__font–10″>Titulek</span></figcaption>
 * [https://cs.wordpress.org/plugins/justified-gallery/](https://cs.wordpress.org/plugins/justified-gallery/)
    -  This reply was modified 7 years, 8 months ago by [bighead73](https://wordpress.org/support/users/bighead73/).
 *  Plugin Author [Arno Welzel](https://wordpress.org/support/users/awelzel/)
 * (@awelzel)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/display-caption/#post-10743605)
 * [@bighead73](https://wordpress.org/support/users/bighead73/) For the next update
   I’ll try to implement a more generic way to deal with image captions. However
   since “Justified Gallery” also uses PhotoSwipe, there may be a conflict when 
   using both plugins at the same time.
 *  [bighead73](https://wordpress.org/support/users/bighead73/)
 * (@bighead73)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/display-caption/#post-10743632)
 * Yes I know about it, but unfortunately the lightbox in JG plugin works only in
   the with his gallery, not in single pictures on the page. That’s why I deactivated
   lightbox in the JG plugin and use only your lightbox that works great for all
   the pictures on the site.
 * It would be great if you managed to dictate but I understand that it is not quite
   easy to respond to all possibilities.
 * Thx.
 *  [belyvolk](https://wordpress.org/support/users/belyvolk/)
 * (@belyvolk)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/display-caption/#post-10818440)
 * Good day!
    I use your wonderful plugin with FooGallery. But caption are not displayed.
   Look, please, and this moment. Perhaps it is not so difficult to fix.
 *  Plugin Author [Arno Welzel](https://wordpress.org/support/users/awelzel/)
 * (@awelzel)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/display-caption/#post-10822455)
 * I just published an update (1.65) wich should handle captions properly.
 *  [bighead73](https://wordpress.org/support/users/bighead73/)
 * (@bighead73)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/display-caption/#post-10822463)
 * Unfortunately after updating I see this message 🙁
 * Notice
    : Undefined property: LightboxPhotoSwipe::$show_caption in /…my web path…./
   plugins/lightbox-photoswipe/lightbox-photoswipe.php on line 103
    -  This reply was modified 7 years, 7 months ago by [bighead73](https://wordpress.org/support/users/bighead73/).
 *  Plugin Author [Arno Welzel](https://wordpress.org/support/users/awelzel/)
 * (@awelzel)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/display-caption/#post-10822472)
 * Are you sure, you are using the latest version? Because this bug was fixed with
   1.65.
 *  [bighead73](https://wordpress.org/support/users/bighead73/)
 * (@bighead73)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/display-caption/#post-10822485)
 * I’m sorry I thought I confirmed the update but I probably did not push the button.
 * Thank you for updating. Have a nice day.

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

The topic ‘display caption’ 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/)

 * 14 replies
 * 4 participants
 * Last reply from: [bighead73](https://wordpress.org/support/users/bighead73/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/display-caption/#post-10822485)
 * Status: resolved