Home › Forums › Add-ons › Gallery Field › Custom Fields in Gallery Array › Reply To: Custom Fields in Gallery Array
Aaaahh..
It seems that the returned data is an object rather than an array..I’m not sure wether this is due to your json encoding or not tho. When checking the documentation it’s clearly an array and not an object..
If this is what you get back using my code it does seem to run through the foreach since you do get something in “gallery” the issue seems to be that it does not add constrain which it should.
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.