Support

Account

Home Forums General Issues ACF 5 pro – Full size image data in image array field

Solving

ACF 5 pro – Full size image data in image array field

  • ACF image fields used to return a ‘Full’ size value when using image object. This matches what’s documented on ACF.

    Is this no longer the case with ACF 5 image arrays?

        Array
    (
        [ID] => 65
        [id] => 65
        [alt] => 
        [title] => dummy-400x600-SpiderWeb
        [caption] => 
        [description] => 
        [url] => http://localhost:3000/myproject/wp-content/uploads/2014/09/dummy-400x600-SpiderWeb.jpg
        [width] => 400
        [height] => 600
        [sizes] => Array
            (
                [thumbnail] => http://localhost:3000/myproject/wp-content/uploads/2014/09/dummy-400x600-SpiderWeb-150x150.jpg
                [thumbnail-width] => 150
                [thumbnail-height] => 150
                [medium] => http://localhost:3000/myproject/wp-content/uploads/2014/09/dummy-400x600-SpiderWeb.jpg
                [medium-width] => 400
                [medium-height] => 600
                [large] => http://localhost:3000/myproject/wp-content/uploads/2014/09/dummy-400x600-SpiderWeb.jpg
                [large-width] => 400
                [large-height] => 600
            )
    
    )
  • I support your request.
    I kept getting errors when trying to link thumbnails to full size images and I didn’t notice that full size disappeared forma array.

    [Edit]: I just realized that the full img path actually corresponds to $image[‘url’]
    I’m ok using this object for my needs, hope this helps.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘ACF 5 pro – Full size image data in image array field’ is closed to new replies.