Home › Forums › Add-ons › Options Page › Get_fields() not working on only local-json › Reply To: Get_fields() not working on only local-json
UPDATE: Looks like I have a GIT merge conflict message in my JSON file, that was preventing it from being loaded at runtime.
I’m seeing this same behavior on a “Page Link” field type, when I rely on the local JSON to load the field sets at runtime.
When the field groups are loaded from JSON at runtime, I get the ID of the page when using get_field. When I’m using a “synced” fieldset, I get the URL of the linked page.
It seems the issue is related to return format differing depending on how the field group is loaded.
Seems to be an issue with other field types too: http://support.advancedcustomfields.com/forums/topic/json-not-syncing-image-field-return-format/
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.