• Resolved alanbrownca

    (@alanbrownca)


    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)
  • Plugin Contributor jpowersdev

    (@jpowersdev)

    Hi @alanbrownca,

    I’m sorry that this issue slipped through my radar. Were you able to get it working?

    We don’t use ACF too often, but in the past, I have used https://github.com/airesvsg/acf-to-rest-api/ when I need to pull ACF data from the REST API. Unfortunately, it looks like it hasn’t been updated recently, but it may be worth a shot.

    Jon

    Thread Starter alanbrownca

    (@alanbrownca)

    Hi @jpowersdev

    Thanks for the follow up. At the end of the day I did get it working by using the very plugin you’ve linked to in your reply.

    Might be a nice feature to see added to this plugin. Food for thought. Cheers

    Plugin Contributor jpowersdev

    (@jpowersdev)

    Hi @alanbrownca,

    Thank you for letting me know! That is quite a nifty plugin, glad you got it working.

    We will consider your request.

    Thanks,
    Jon

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘ACF Images not returning correctly’ is closed to new replies.