WP Manifestindependent plugin directory
manifest / developer / migrate-acf-field-data-to-repeater

Migrate ACF Field Data to Repeater WP CLI Command

A WordPress plugin that adds the `wp migrate-acf-field-data-to-repeater` command to WP CLI. That command renames the keys of metadata so that they are prepended with the repeater slug so that the fields can be moved into a repeater along with their data.

by Kodie Grantham · github.com/kodie/migrate-acf-field-data-to-repeater · website

3stars
7composer installs
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/kodie/migrate-acf-field-data-to-repeater/archive/refs/heads/main.zip

Also on Packagist as kodie/migrate-acf-field-data-to-repeater:

composer require kodie/migrate-acf-field-data-to-repeater

From the readme

Migrate ACF Field Data to Repeater WP CLI Command Warning: This plugin and command should be considered experiemental. Use at your own risk. Be sure to test thoroughly before using in a production environment. A WordPress plugin that adds the wp migrate-acf-field-data-to-repeater command to WP CLI. That command renames the keys of metadata so that they are prepended with the repeater slug so that the fields can be moved into a repeater along with their data. For example: I have a field created with ACF named itemdescription and I have been using it on pages so that field has content in it on multiple pages. Later on I decided that I want a repeater field named items and I want itemdescription to be in that repeater. Well, I can easily drag the field into the repeater and there we go! Except, not really. The previously entered data for itemdescription will not appear in the new repeater field. That's where this command comes into play. Use this command after you have already created your new repeater field and moved the fields you with to migrate into the repeater from the Custom Fields page. wp migrate-acf-field-data-to-repeater [--dry-run] [--posttype=POSTTYPE] [--include=

Read the full README on GitHub →