Home › Forums › Backend Issues (wp-admin) › Update ACF fields in WordPress admin using Ajax › Reply To: Update ACF fields in WordPress admin using Ajax
Some fields take more coding to update. To be honest I’m not sure what you have to do.
this returns the field
var field = acf.getField(key);
the field type will be part what is returned. You’ll need to look at that and then do something different for more complex fields. Unfortunately, like I said, I don’t know what needs to be done for every field type.
It might help if you change you php to not format the values being returned
Change this
$source_fields = get_field_objects($another_post_id);
to this
$source_fields = get_field_objects($another_post_id, false);
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.