Home › Forums › Add-ons › Gallery Field › Use files in Gallery field › Reply To: Use files in Gallery field
Well, it would cause problems because it will try to return an array of images. On the other hand, if you used the code at the bottom of the gallery doc page http://www.advancedcustomfields.com/resources/gallery/ “Create a WP gallery” this returns an array of attachment ID values and you could use those with wp_get_attachment_url()
. However, I’ve never tried to add files to a gallery field, have you? Will it allow files that are not images?
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.