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

  • Here are two examples of what getposts returns for two ids – the same post in english and estonian, to which I purposely added the same pictures to two separate gallery fields:

    ENGLISH

    ["gallery"]=>
      array(1) {
        [0]=>
        string(4) "5690"
      }
      ["test_galerii"]=>
      array(1) {
        [0]=>
        string(4) "5694"
      }

    ESTONIAN

    ["gallery"]=>
      array(1) {
        [0]=>
        string(4) "5689"
      }
      ["test_galerii"]=>
      array(1) {
        [0]=>
        string(4) "5695"
      }

    I see that a new ID is produced every time I add an image in another language.
    Is there some other handle i can use to add an image to the gallery, other than the ID, or somehow predict the ID that will come?