Title: Using alongside ACF
Last modified: August 30, 2016

---

# Using alongside ACF

 *  Resolved [jamkaret](https://wordpress.org/support/users/jamkaret/)
 * (@jamkaret)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/using-alongside-acf/)
 * Hello,
 * Great plugin, especially because you paid attention to performance as well.
    
   That said, i am wondering how to enable the lightbox for Advanced Custom Fields’
   gallery. The code i am using to grab gallery images is below.
 *     ```
       <?php 
   
       $images = get_field('gallery');
   
       if( $images ): ?>
           <ul>
               <?php foreach( $images as $image ): ?>
                   <li>
                       <a href="<?php echo $image['url']; ?>">
                            <img src="<?php echo $image['sizes']['thumbnail']; ?>" alt="<?php echo $image['alt']; ?>" />
                       </a>
                       <p><?php echo $image['caption']; ?></p>
                   </li>
               <?php endforeach; ?>
           </ul>
       <?php endif; ?>
       ```
   
 * I noticed that you do support native WordPress galleries. Maybe ACF isn’t pulling
   in a native gallery?
 * Thanks!
 * [https://wordpress.org/plugins/wp-featherlight/](https://wordpress.org/plugins/wp-featherlight/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [jamkaret](https://wordpress.org/support/users/jamkaret/)
 * (@jamkaret)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/using-alongside-acf/#post-6670899)
 * Solved by adding:
 * `<div data-featherlight-gallery data-featherlight-filter="a">`
 * Before the foreach;

Viewing 1 replies (of 1 total)

The topic ‘Using alongside ACF’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-featherlight_121e24.svg)
 * [WP Featherlight - A Simple jQuery Lightbox](https://wordpress.org/plugins/wp-featherlight/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-featherlight/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-featherlight/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-featherlight/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-featherlight/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [jamkaret](https://wordpress.org/support/users/jamkaret/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/using-alongside-acf/#post-6670899)
 * Status: resolved