Home › Forums › ACF PRO › update field is updating value in database but on the frontend › Reply To: update field is updating value in database but on the frontend
I finally figured this out. I needed to do
update_field( 'field_59f6d4dd91fcd', $post_id_of_post_I_want_to_connect_to, $post_id );
This gives me the post_title as the post_object. Is there a way to populate the field – field_59f6d4dd91fcd with a different field within that post?
To clarify – I have a post that has a acf field ‘team_code’. This is the value I want to set as the value for field field_59f6d4dd91fcd. I am now getting just the title of the post that includes the team_code. How do I get the actual text value of team_code?
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've just released ACF 5.12.3 with a security fix to prevent arbitrary file uploads to forms with ACF fields.— Advanced Custom Fields (@wp_acf) July 14, 2022
Now that we've released this update, we recommend updating your sites as soon as possible.
© 2022 Advanced Custom Fields.