This thread is resolved. Here is a description of the problem and solution.
Problem:
You are using WPForms and WPML integration, and it is translating all the Smart Tags like {all_fields}, which stops them from working properly. The Smart Tags are being translated, resulting in {all_fields} being shown as {alle_Felder}.
Solution:
We recommend adding the following code to your functions.php file to prevent Smart Tags from being translated:
// WPML Workaround for compsupp-7788 add_filter( 'wpml_tm_job_field_is_translatable', 'compsupp_skip_wpforms_smart_tags', 10, 2 ); function compsupp_skip_wpforms_smart_tags( $is_translatable, $job_translate ) { $data = $job_translate['field_data']; if ( 'base64' === $job_translate['field_format'] ) { $data = base64_decode( $data ); } // Check if data exists and starts with '{' if (isset($data) && strpos($data, '{') === 0) { return false; } return true; }
This solution might be irrelevant if it's outdated or not applicable to your case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If this does not resolve your issue, 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 0 replies, has 0 voices.
Last updated by 2 weeks, 3 days ago.
Assisted by: Dražen.