Support

Account

Home › Forums › Add-ons › Gallery Field › Gallery field doesn't accept data from other languages › Reply To: Gallery field doesn't accept data from other languages

  • I posted part of the wrong code.

    this is the correct part of the if check

    if($posttype == 'regioon')
            {
             
            update_field('region_country', $engposts['region_country'], $translation->element_id); 
              update_field('area', $engposts['area'], $translation->element_id);
              update_field('population', $engposts['population'], $translation->element_id); 
              update_field('region_phone', $engposts['region_phone'], $translation->element_id);
              update_field('e-mail', $engposts['e-mail'], $translation->element_id); 
              update_field('email', $engposts['email'], $translation->element_id); 
              update_field('text_2', $engposts['text_2'], $translation->element_id); 
              update_field('text_3', $engposts['text_3'], $translation->element_id); 
              update_field('gallery', $engposts['gallery'], $translation->element_id); 
              }