WPML
Status
Resolved
Reported for
Advanced Custom Fields Multilingual 2.0.2
Resolved in
2.0.3
Related plugin/theme
Advanced Custom Fields (ACF)
Topic tags
Compatibility

Overview of the issue

With our latest Advanced Custom Fields Multilingual release, ACFML 2.0, when the  Field Groups (acf-field-group) are set as Translatable (and translated), fields are duplicated in the native editor. This issue occurs because the function acf_get_field_groups() is called too early, causing the cache to be filled with unfiltered or partially filtered data. The cached field groups are not filtered by language at that stage.

Workaround

Our developers are working on fixing this right now. A hotfix release will be issued shortly.

In the meantime, you can add this code into your theme’s functions.php file. Be sure to make a full backup of your site before proceeding:

add_action( 'wp_loaded', function() {
    wp_cache_delete( acf_cache_key( 'acf_get_field_group_posts' ), 'acf' );
} );

All known issues →