Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Retrieving the Attachment ID

  • This topic is empty.
Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • #119733
    realph
    Participant

    @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];

    #119734
    chrisburton
    Participant

    Awesome. Glad you solved it.

Viewing 2 posts - 16 through 17 (of 17 total)
  • The forum ‘Back End’ is closed to new topics and replies.