Replies: 0
I have this code to get the value for a custom field ‘label’ which works fine:
$your_field_name = "myCustomField";
$your_field_object = get_field_object($your_field_name);
echo $your_field_object['label'];
Problem is that I translated the custom fields using WPML and this code echo only the default language value for ‘label’.
Is there a way to get the value in the right language? I mean the language the site is loaded at the moment the code echo the value.