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! 🙂
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.