Title: Missing Title &amp; Description
Last modified: December 2, 2018

---

# Missing Title & Description

 *  Resolved [Schalk Joubert](https://wordpress.org/support/users/schalkjoubert/)
 * (@schalkjoubert)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/missing-title-description-2/)
 * Hi
 * Im trying to use FooBox with ACF Gallery.
    It is working, except for the Description&
   Title is not showing when hovering over the lightbox.
 * Instead, The Alt info is showing.
    Any idea how to fix this? Thank you
 *     ```
       <?php $images = get_field('gallery_images');
           if( $images ): ?>
               <div id="photos">
                   <?php foreach( $images as $image ): ?>
                       <a href="<?php echo $image['url']; ?>" class="foobox" rel="gallery">
                           <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" caption="<?php echo $image['caption']; ?>" description="<?php echo $image['description']; ?>" title="<?php echo $image['title']; ?>" />
                       </a>
                   <?php endforeach; ?>
               </div>
           <?php endif; ?>
       ```
   

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

 *  Plugin Author [bradvin](https://wordpress.org/support/users/bradvin/)
 * (@bradvin)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/missing-title-description-2/#post-10938434)
 * hi
 * edit your code slightly to include these attributes on the anchor:
 *     ```
       data-caption-title="<?php echo $image['caption']; ?>" 
       data-caption-desc="<?php echo $image['description']; ?>"
       ```
   
 *  Thread Starter [Schalk Joubert](https://wordpress.org/support/users/schalkjoubert/)
 * (@schalkjoubert)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/missing-title-description-2/#post-10941169)
 * I, thank you, but that didn’t work.
    It seems the template only allows for Title,
   and therefor one needs add the everything to the title field:
 *     ```
       <a href="<?php echo $image['url']; ?>" class="foobox" rel="gallery">
       <img src="<?php echo $image['url']; ?>"
       title="<?php echo $image['title'] . '<br>' . $image['caption'] . '<br>' . $image['description']; ?>"
       />
       </a>
       ```
   
    -  This reply was modified 7 years, 6 months ago by [Schalk Joubert](https://wordpress.org/support/users/schalkjoubert/).
 *  Plugin Author [bradvin](https://wordpress.org/support/users/bradvin/)
 * (@bradvin)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/missing-title-description-2/#post-10950499)
 * Hi Schalk,
 * I do not understand why you cannot add custom data attributes to the template?
 *     ```
       <a href="<?php echo $image['url']; ?>" class="foobox" rel="gallery" data-caption-title="<?php echo $image['caption']; ?>" data-caption-desc="<?php echo $image['description']; ?>">
       <img src="<?php echo $image['url']; ?>" />
       </a>
       ```
   
 *  [phillcoxon](https://wordpress.org/support/users/phillcoxon/)
 * (@phillcoxon)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/missing-title-description-2/#post-10975966)
 * Hi [@schalkjoubert](https://wordpress.org/support/users/schalkjoubert/),
 * We haven’t heard back from you so I’m going to assume that you were able to use
   the example Brad provided to create a solution.
 * Please do feel free to respond if you need any further assistance.

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

The topic ‘Missing Title & Description’ is closed to new replies.

 * ![](https://ps.w.org/foobox-image-lightbox/assets/icon-256x256.gif?rev=2667030)
 * [Lightbox & Modal Popup WordPress Plugin - FooBox](https://wordpress.org/plugins/foobox-image-lightbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/foobox-image-lightbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/foobox-image-lightbox/)
 * [Active Topics](https://wordpress.org/support/plugin/foobox-image-lightbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/foobox-image-lightbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/foobox-image-lightbox/reviews/)

## Tags

 * [ACF](https://wordpress.org/support/topic-tag/acf/)

 * 4 replies
 * 3 participants
 * Last reply from: [phillcoxon](https://wordpress.org/support/users/phillcoxon/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/missing-title-description-2/#post-10975966)
 * Status: resolved