ACF Images not returning correctly
-
First off: love this plugin. Simple and effective.
My only issue is that I have noticed that this plugin only returns the ID of an Advanced Custom Fields Images instead of the entire object of data.
Current behaviour:
"primary_photo": "833",
Expected behaviour:
"primary_photo": { "ID": 833, "id": 833, "title": "inbound4610837211966458741.jpg", "filename": "inbound4610837211966458741.jpg", "filesize": 584439, "url": ".../inbound4610837211966458741.jpg", "link": .../inbound4610837211966458741-jpg/", "alt": "", "author": "0", "description": "", "caption": "", "name": "inbound4610837211966458741-jpg", "status": "inherit", "uploaded_to": 832, "date": "2020-05-21 17:36:06", "modified": "2020-05-21 17:36:10", "menu_order": 0, "mime_type": "image/jpeg", "type": "image", "subtype": "jpeg", "icon": ...", "width": 1536, "height": 2048, "sizes": {.../inbound4610837211966458741-150x150.jpg", "thumbnail-width": 150, "thumbnail-height": 150, "medium": ".../inbound4610837211966458741-225x300.jpg", "medium-width": 225, "medium-height": 300, "medium_large": .../inbound4610837211966458741-768x1024.jpg", "medium_large-width": 768, "medium_large-height": 1024, "large": ".../inbound4610837211966458741-768x1024.jpg", "large-width": 768, "large-height": 1024 } },
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘ACF Images not returning correctly’ is closed to new replies.