• Resolved Dawid Tomas

    (@rodzyn)


    Hello!

    Today I tried to import/modify data by update_field() function, unfortunately I always was updating with false result. It’s because your plugin doesn’t support term type. Here is quick solution for this problem (file: acf-table-v5.php):

     
    if(empty($data)) {
       $data = get_term_meta(str_replace('term_', '', $post_id), $field['name'], true);
    }
    

    Add this code below:
    $data = get_post_meta( $post_id, $field['name'], true );

    Best regards!
    Dawid

    • This topic was modified 4 years ago by Dawid Tomas. Reason: Added file name
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add support for update_field on term’ is closed to new replies.