Support

Account

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?