Title: [Plugin: Simple Fields] Adding a new repeatable field entry using script
Last modified: August 19, 2016

---

# [Plugin: Simple Fields] Adding a new repeatable field entry using script

 *  [JimDestruct](https://wordpress.org/support/users/jimdestruct/)
 * (@jimdestruct)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-simple-fields-adding-a-new-repeatable-field-entry-using-script/)
 * Hi, I am stuck with a small issue of adding a repeatable entry via a function
   on the front end of the website.
 * For example if I wanted to add content for a single field I would do something
   like this:
    add_post_meta(get_the_id(), ‘_simple_fields_fieldGroupID_32_fieldID_3_numInSet_0’,“
   test”);
 * but when I do the same for a repeatable field ie:
 * add_post_meta(get_the_id(), ‘_simple_fields_fieldGroupID_32_fieldID_1_numInSet_4’,“
   test”);
    add_post_meta(get_the_id(), ‘_simple_fields_fieldGroupID_32_fieldID_2_numInSet_4’,“
   test”); add_post_meta(get_the_id(), ‘_simple_fields_fieldGroupID_32_fieldID_3_numInSet_4’,“
   test”);
 * It does not show up – I think there is a setting you have to change in the options
   that governs how many there are in the group but I don’t know how to alter this
   when doing the above… any ideas anyone?
 * Thanks
    Jim
 * [http://wordpress.org/extend/plugins/simple-fields/](http://wordpress.org/extend/plugins/simple-fields/)

The topic ‘[Plugin: Simple Fields] Adding a new repeatable field entry using script’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-fields_fafafa.svg)
 * [Simple Fields](https://wordpress.org/plugins/simple-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-fields/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [JimDestruct](https://wordpress.org/support/users/jimdestruct/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-simple-fields-adding-a-new-repeatable-field-entry-using-script/)
 * Status: not resolved