thank you for your reply. I know my english is orrible, I am sorry. Try to better explain myself.
In our local environment (same db as production, same code (GIT), same plugin, etc…):
$values = get_field($field_name, $post_id, false);
it works. It returns an array. On our production it returns
PHP version is just the one difference beetwen environment.
For your information:
$post_id is the current language POST ID, so it is right. We are getting values from the current POST ID and copy it to the translated posts, because we want the same exactly gallery, even if user upload photos to german version (for example) and not into english version.
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!
© 2023 Advanced Custom Fields.