The problem was that the custom field data of the machine post was probably not saved yet.
using add_action('save_post_machines', 'associate_machine', 10, 3);
using
add_action('acf/save_post', 'associate_machine', 11);
instead of post save
, resolved the problem.
What I had trouble finding before is that the priority should apparently be > 10.
+1 for this. I also need this to work properly.
Hi @jonathan
I have the same issue then @davewardle, except I am not using forms. I managed to set up the field labels and WPML is seeing the strings and I am able to translate the labels. My question is what can get lost when updating acf? If I keep my ields saved as php plus the translation mo and po files it would be a matter of reuploading these, or what are the risks?
Sorry, still new at WordPress development.