This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is experiencing an issue with the Advanced Custom Fields (ACF) flexible content where deleting a flexible content layout causes the fields from the deleted layout to display in the next section instead of being empty. This happens because the WPML translation editor does not handle empty fields as expected, leading to old values being displayed instead of empty ones.
Solution:
If you're experiencing this issue, we recommend trying one of the following solutions:
1. Add the following filter to your
functions.php
file:
add_filter('wpml_sync_deleted_custom_fields', '__return_true');
2. OR Insert a non-breaking space
inside your ACF value to prevent it from being empty.
Please note that this solution might be irrelevant if it's outdated or not applicable to your case. We highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket with us.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic is split from https://wpml.org/forums/topic/acf-flexible-content-field-isnt-synced/
This topic contains 3 replies, has 2 voices.
Last updated by 9 months, 2 weeks ago.
Assisted by: Dražen Duvnjak.