Home › Forums › General Issues › Adding a link to the Gallery Image › Reply To: Adding a link to the Gallery Image
Hi @dan@u4eastudios.com
You can create a 2nd field group containing a text field (for the url) and attach this to all media items.
Then, when you are selecting / editing the images in the gallery field, you will see the new url field.
Then in your code, use the image ID to load in the url field – please see the docs in regards to loading data from an image.
Cheers
E
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.