WPML is used throughout the site for multilingualism.
A new multilingual post (2 languages, de/en) is to be created in a ACF frontend form.
A new post in one language can easily be created with ACF (ACF pro) frontend form.
However, the new post should always be created in both languages (from the frontend) at the same time.
How can I achieve this?
2
Answers
To add a new multilingual post using WPML on the frontend, first, create your post in the default language. Then, switch to the desired language using the WPML language switcher. Finally, translate the content and publish the post. This is the easiest way I found.
You can also give a try by adding the given code to the functions.php file of the theme.
Here we are using acf/save_post hook for inserting posts.