Keep same field_nnnnn even if meta slug is changed
under review
Jairo Ochoa
In ACF, if we modify labels, descriptions, or options of a field, the value of field_nnnn remains unchanged. However, if we change the meta slug, a new field_nnnn is generated. This causes the existing data in post_meta to become orphaned.
It would be better if changing the slug did not affect field_nnnn, so the link with existing data stayed intact. On the other hand, if we create a completely new field, then a new field_nnnn should indeed be generated.
Thanks
Iain Poulson
marked this post as
under review
Iain Poulson
Hi Jairo Ochoa, when you say field slug are you referring to the field name? This is auto generated the first time from the label. Once it is set, and fields are created using that field name as the post meta key, they will remain using that key even if the field name is changed. We are considering handling the update of post meta key for records, on change of field name - would that work for you?