Home › Forums › ACF PRO › Are custom image sizes still available? › Reply To: Are custom image sizes still available?
Ok so although it’s not in the “sizes” array you can of course still access the image size with a WordPress function. So instead of trying to get a custom image size from an option field but directly referencing the “sizes” array i.e.:
$image['sizes']['banner']
I’m just doing
wp_get_attachment_image_src($image['ID'], 'banner')
This will output an array. The first item in the array (0) with be your image URL
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.