• Resolved vitaita

    (@vitaita)


    I have 2 languages at website – ru and eng
    Trying to set different values for Custom Field settings type select variants
    I fill the variants:
    1 : [:en]City[:ru]Город
    2 : [:en]Village[:ru]Деревня
    After saving it’s ok,
    but after saving changes to any other fields, values in both languages become the same. If I’m saving changes on RU tab they become RU variants in all languages, if i’m saving from EN tab – they become EN variants.
    So just impossible to set proper values for different languages.

Viewing 1 replies (of 1 total)
  • Use filter wpm_acf_field_{$field_type}_config for set translation config for field object. As example, add translating default text for text field:

    
    add_filter( 'wpm_acf_field_text_config', function ( $config ) {
      $config['default_value'] = array();
      return $config;
    } );
    
Viewing 1 replies (of 1 total)
  • The topic ‘Problems with ACF’ is closed to new replies.