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?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.