Home › Forums › Add-ons › Gallery Field › How i can display medium_large size? › Reply To: How i can display medium_large size?
A gallery field can return the URL, ID or an array. To show a specific size image you need to return something other than URL. If you return the id then you would use https://developer.wordpress.org/reference/functions/wp_get_attachment_image_src/ to get the image. If you return an array see the documentation of the image field to see what is returned for each image in the array https://www.advancedcustomfields.com/resources/image/.
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.