Home › Forums › General Issues › Field data from openid › Reply To: Field data from openid
Hi @pmflav
You have to use update_field(...)
method to populate the ACF fields.
Hmm…. May be you could try this:
$nickname = $data[‘data’][$account_id][“nickname”];
$field_key = '<field_key>';
$post_id = <post_id>;
update_field($field_key, $nickname, $post_id);
Remember to replace the $field_key and $post_id with the actual field_key and post_id respectively.
Check out the documentation of update_field(…) for more information: http://www.advancedcustomfields.com/resources/update_field/
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.