Title: update values programatically for clone text fields
Last modified: August 31, 2016

---

# update values programatically for clone text fields

 *  Resolved [shyam100379](https://wordpress.org/support/users/shyam100379/)
 * (@shyam100379)
 * [10 years ago](https://wordpress.org/support/topic/update-values-programatically-for-clone-text-fields/)
 * Hello Support,
    I want to know how we can update clone text field values programatically.
   In normal cases we can update like this: update_post_meta($postid, ”,”); But 
   for clone its a different scenario. So we need to store it like an array. So 
   can i update values like this? Please advise. Thanks in advance,
 * [https://wordpress.org/plugins/meta-box/](https://wordpress.org/plugins/meta-box/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Anh Tran](https://wordpress.org/support/users/rilwis/)
 * (@rilwis)
 * [10 years ago](https://wordpress.org/support/topic/update-values-programatically-for-clone-text-fields/#post-7439561)
 * Hi,
 * Clone fields store values in an array into 1 single row in the post meta table.
   To update it, simply use:
 *     ```
       $values = array(
           'Value 1',
           'Value 2',
       );
       update_post_meta( $post_id, 'field_id', $values );
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘update values programatically for clone text fields’ is closed to new
replies.

 * ![](https://ps.w.org/meta-box/assets/icon-128x128.png?rev=1100915)
 * [Meta Box](https://wordpress.org/plugins/meta-box/)
 * [Support Threads](https://wordpress.org/support/plugin/meta-box/)
 * [Active Topics](https://wordpress.org/support/plugin/meta-box/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/meta-box/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/meta-box/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Anh Tran](https://wordpress.org/support/users/rilwis/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/update-values-programatically-for-clone-text-fields/#post-7439561)
 * Status: resolved