How to disable the “Synchronise repeater and flexible sub-fields positions in post translations” WPML ACF option
If you use WordPress and have WPML with their Advanced Custom Fields Multilingual (ACFML) plugin installed you may have already spotted the following option below repeater fields:
While this may seem like a nice option it’s turned on by default and not great for websites that use a repeater as the main content field and have pages with varying content for different languages. I often use the Flynt theme for developing custom-made WordPress sites, which uses the given setup.
The solution: disable the “Synchronise translations” option by default
Sadly I haven’t found a documented way to disable the option. While looking through the ACFML plugin however I’ve found the following solution in two easy steps:
1. Add the following lines to your
/* Disable ACFML's sync of repeater field positions across languages by default */ define( 'ACFML_REPEATER_SYNC_DEFAULT', false );
2. Most likely: update setting of existing posts
In your database select the “wp_options” table and look for a record with “option_name” =
acfml_synchronise_repeater_fields. This record seems to contain the post IDs of existing posts with their corresponding boolean setting.
acfml_synchronise_repeater_fields column to something like
acfml_synchronise_repeater_fields_backup in order to disable/unset the value for all existing posts. As soon as you set the setting for a post again this record will be recreated.
If this solution helped solve the same problem for you it would be great if you could let me know that in the comments below.