This thread is resolved. Here is a description of the problem and solution.
Problem:
If I use get_post_meta WordPress function to get the ACF Clone field, the result is the original language ID on a translated page which is wrong. For example:
I created a WordPress, WPML, ACF Pro and Multilingual installation that you can access here:
hidden link
Please replicate the issue about the copied gallery items with prefix option and add your code to theme's functions.php file or somewhere else (inform us) to see ethe result and the inconsistency.
In each page there are two var_dump(): the first is from a normal gallery (ids are translated), the second is from a cloned + prefix gallery (ids are not translated)
I am going to report this to the second-tier support for further investigation.
Just to be on the same page, as already get_field function retrieves the correct ID for the Clone Gallery, there is a way to achieve this and it will get a lower priority for the get_post_meta method.
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.