Support

Account

Home Forums General Issues Get nothing when update_field from functions.php but in admin everything is ok Reply To: Get nothing when update_field from functions.php but in admin everything is ok

  • Solved by https://support.advancedcustomfields.com/forums/topic/get_field-doesnt-return-a-value-when-fields-are-created-with-update_field/

    How solved it:

    • go to mysql(phpmyadmin)
    • table = wp_postmeta
    • find recently edited data
    • get like – field_34tgwer data and replace field_name

    update_field( 'field_58538261203ed', $name, $post_id );