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

Overview of the issue

When using Advanced Custom Fields with WPML, you might experience an issue where repeater fields on options pages are synchronized across languages even when the repeater field and its subfields are set to Don’t translate and the ACFML Synchronise translations option is disabled. In secondary languages, newly added rows can appear as empty rows.

Workaround

Please, make sure of having a full site backup of your site before proceeding.


  • Open the …/wp-content/plugins/acfml/classes/Options/EditorHooks.php file.

  • Look for line 205.

  • Replace:
    	private function copyWrapperToTranslations( $value, $field ) {
    		$optionName      = Obj::prop( 'name', $field );
            


  • With:
    	private function copyWrapperToTranslations( $value, $field ) {
    		if ( WPML_COPY_CUSTOM_FIELD !== (int) Obj::prop( 'wpml_cf_preferences', $field ) ) {
    			return;
    		}
    
    		$optionName      = Obj::prop( 'name', $field );
            

All known issues →