Home › Forums › General Issues › Add image to image field type › Reply To: Add image to image field type
The preview size is only what is show when an image is selected in the admin. You can use any size of the image on the front end for the most part, with the exception of returning the url for the image.
There are tree return values, Image Array, Image URL and Image ID.
If you set the field to return the image URL then the URL returned will be the full size image URL, so you’re locked into this size.
If you return an Image Array then all of the information about the image and all of it’s sizes are returned.
If you return the Image ID then you can use that ID to get any image size you want using standard WP function like wp_get_attachment_image_src()
http://codex.wordpress.org/Function_Reference/wp_get_attachment_image_src
All of these return values and how to use them are covered in the documentation for the image field. http://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.