Hmm, I’m not sure that helps me. I tried swapping out $image_ids for $images etc but got the same results. I shouldn’t need to alter any HTML. I’ve integrated fancybox into the WP Gallery via my functions.php file, so on normal pages the WP Gallery acts like fancybox right out of the box.
It’s only when WP Gallery is called using this add-on that clicking a thumbnail opens the attachment page rather than the media file in a lightbox.
Thanks for your help anyway 🙂 I’ll keep looking…
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users