AdvancedCustomFields / AdvancedCustomFields/acf

[Question] Is it possible to change repeater field name but keep it's data?

Open
#385 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
945
Forks
197
PR merge metrics
No merged PRs in 30d

Description

I tried this to keep the field data when renaming a field

UPDATE wp_postmeta
SET meta_key='new_name'
where meta_key='old_name';

UPDATE wordpress.wp_postmeta
SET meta_key='_new_name'
where meta_key='_old_name';

But this won't work if the field is a repeater.
I have thousands of post using the repeater, I don't want to readd the data one by one manually..
I want to know is there any ideal way to do this?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue identifies WordPress's wp_postmeta table and the old and new meta keys; begin by tracing how ACF stores repeater rows and subfield keys. Validate any migration against representative posts and confirm that all repeater data remains readable under the renamed field.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, sql, wordpress
Domain
database
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.