The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › Back End › Retrieving the Attachment ID
@chrisburton Thanks a bunch bud!!!!! I saw that SE question last night, but obviously I was too tired to process.
This seems to work:
$attachment_id = get_sub_field(‘background_photo’); $image_attributes = wp_get_attachment_image_src( $attachment_id, $size ); echo $image_attributes[0];
Awesome. Glad you solved it.