Home › Forums › Add-ons › Gallery Field › Return Media file not Attachment Page › Reply To: Return Media file not Attachment Page
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
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.