Hello,
I am using ACF custom fields in a theme that uses WPML and am having some trouble with translating checkbox fields. I am including ACF custom fields in the theme itself using define( ‘ACF_LITE’ , true ); and have wrapped the values displayed on the frontend like so :
array (
'key' => 'field_52dcf154e272e',
'label' => __('Selling Points', 'hostel_mama' ),
'name' => 'selling_points',
'type' => 'checkbox',
'instructions' => __('Check 4 items', 'hostel_mama' ),
'choices' => array (
__('Bed linens included', 'hostel_mama') => 'Bed linens included',
__('Full bed linens included', 'hostel_mama') => 'Full bed linens included',
__('Free WIFI and Internet Access', 'hostel_mama' ) => 'Free WIFI and Internet Access',
__('Free (in-room) WIFI', 'hostel_mama' ) => 'Free (in-room) WIFI',
__('Breakfast included', 'hostel_mama' ) => 'Breakfast included',
__('Safe provided in room', 'hostel_mama' ) => 'Safe provided in room',
__('Individual room key', 'hostel_mama' ) => 'Individual room key',
),
'layout' => 'vertical',
),
The problem is that the key in the key=>value pair is being displayed on the frontend and the value is in admin. Only the value is translateable.