Support

Account

Home Forums Feature Requests Native ACF JSON API Reply To: Native ACF JSON API

  • Hi Elliot,
    code works fine, since now I get the structure out.
    I’ve come across a weird issue with the output though.
    Here is a snippet from the “custom field” part of the JSON output:

    “custom_fields”: {
    “gallerythumb”: [
    “a:3:{i:0;s:2:\”90\”;i:1;s:2:\”92\”;i:2;s:2:\”91\”;}”
    ],

    Tried to get the IDs out (“90”, “92”, “91”) so I can store it in an array to which I can reference the different “attachments”, since the urls don’t come with the “custom_fields”.

    Can you spot what the issue is with the output? or does anyone else have a solution for this? Would love to hear some thoughts on this! 🙂