This thread is resolved. Here is a description of the problem and solution.
Problem:
You have translated an ACF field group that includes a select field with three values. While the backend displays the translated values correctly, the frontend still shows the original strings.
Solution:
The issue stems from your theme's template file. The 'illegal string offset' warning typically arises when attempting to access an array element with a string key, but the variable in question is not an array. This discrepancy explains why you encounter no error when 'Both' is an object (Array) and 'Label' is a string. We recommend following the ACF documentation on how to properly display fields in your theme. You can find the necessary guidelines here: ACF Documentation on Select Fields
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, please open a new support ticket. We also 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.
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 7 replies, has 0 voices.
Last updated by 1 year, 2 months ago.
Assisted by: Andreas W..


