This thread is resolved. Here is a description of the problem and solution.
Problem:
You are using WPML to auto-translate multiple sites and encounter an issue where WPML also translates ACF variables within Bricks Builder, changing variable names and causing them not to be found.
Solution:
1. Ensure you back up your entire website.
2. Insert the following code at the end of the functions.php file of your active theme:
add_filter( 'wpml_tm_job_field_is_translatable', 'wpmltriage_skip_acfdynamic_fields_in_bricks', 10, 2 );<br /><br />function wpmltriage_skip_acfdynamic_fields_in_bricks( $is_translatable, $job_translate ) {<br /> $data = $job_translate['field_data'];<br /> if ( 'base64' === $job_translate['field_format'] ) {<br /> $data = base64_decode( $data );<br /> }<br /> if (isset($data) && strpos($data, '{acf_') === 0) {<br /> return false;<br /> }<br /><br /> return true;<br />}
3. Make a minor edit to the page containing the ACF and save it to apply the new settings.
If this solution does not resolve your issue or seems outdated, we 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 problem persists, please open a new support ticket.
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 contains 1 reply, has 0 voices.
Last updated by 2 weeks, 3 days ago.
Assisted by: Lucas Vidal de Andrade.