This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This thread is resolved. Here is a description of the problem and solution.

Problem:

Is there a way to create translated posts automatically, meaning with a function that would just create the translated post with the data of the original post (no manual translation needed)?

Solution:

Yes, WPML has such an option. We call it 'display as translated'. Please read our documentation about it here.

Relevant Documentation:

https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/

This topic contains 2 replies, has 2 voices.

Last updated by ghledisC 2 months, 2 weeks ago.

Assigned support staff: Itamar.

Author Posts
July 31, 2019 at 9:09 am #4313141

ghledisC

Tell us what you are trying to do?
I don't want post titles to be offered for translation in ATE and I would like to make translation of my custom post type as automatic as possible. I have a lot of ACF fields, the labels of which are already translated and they are all set to copy (meaning the text will not change between languages, only the ACF labels), so if I could have the title not offered for translation nothing would need to be touched in ATE.

My question is, would the post still redirect to the ATE page for translation? Can this be avoided?
Is there a way to create translated posts automatically, meaning with a function that would just create the translated post with the data of the original post (no manual translation needed)? Does any documentation exist for this?

My idea is, the moment the English post is saved a function would be triggered in functions.php that would create the translated posts with the data of the just saved English post. I am willing to do the coding myself.

What is the link to your site?
hidden link

July 31, 2019 at 1:27 pm #4314729

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi.

Yes, WPML has such an option. We call it 'display as translated'.
Please read our documentation about it here.
https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/
With this option enabled, there is no need for custom code.

But FYI, WPML has API hooks which you can check here.
https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/
All the developers' information can be accessed from here.
https://wpml.org/documentation/support/

Best Regards,
Itamar.

July 31, 2019 at 2:31 pm #4315365

ghledisC

My issue is resolved now. Thank you!