Skip to content Skip to sidebar

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

Problem:
The client is planning to bulk-import 70,000 translated posts via the native WordPress REST API using an automation tool, with the default language as Greek and importing English translations. They inquired about the JSON payload format to link English posts to existing Greek post IDs and whether any WPML processes should be disabled to enhance performance during the import.
Solution:
We do not support importing posts via the REST API, as this functionality is only officially supported for WooCommerce products. For linking posts as translations, we recommend using a hook to implement a custom solution. You can find guidance on this at https://wpml.org/wpml-hook/wpml_set_element_language_details/.
Alternatively, include the required WPML meta keys in your import file and follow our guide for importing posts or products, then connect them using our WPML Export and Import add-on. This guide can be found at https://wpml.org/documentation/related-projects/wpml-export-and-import/.
Note that you need to import both language posts and then connect them; it is not possible to connect a translation to existing content without custom code.

If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.

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.

Tagged: 

This topic contains 1 replies, has 0 voices.

Last updated by Dražen 1 week, 2 days ago.

Assisted by: Dražen.

Author Posts
February 24, 2026 at 8:21 am #17845041

alexandrosK-5

Hello WPML Team! We are planning to bulk-import 70,000 translated posts via the native WordPress REST API using an automation tool (Make.com). The default language is Greek, and we are importing the English translations.

Could you please confirm:

REST API Format: What is the exact JSON payload format to link the new English post to the existing Greek post ID? (e.g., using translation_of and lang=en parameters in the /wp/v2/posts endpoint). Is the WPML REST API extension required for this?

Performance Tip: Are there any background WPML processes (like automatic string registration or translation memory) that we should temporarily disable to speed up the database inserts and reduce server load during this 70k bulk import?"

February 24, 2026 at 8:29 am #17845111

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

Since the chat became inactive, I created this ticket so we can continue here.

We do not provide support for importing posts via the REST API, as this is only officially supported for WooCommerce products (https://wpml.org/documentation/related-projects/woocommerce-multilingual/using-wordpress-rest-api-woocommerce-multilingual/).

In your case, the best approach would be either to use a hook and implement a simple custom solution to connect posts as translations:
https://wpml.org/wpml-hook/wpml_set_element_language_details/

Alternatively, you can include the required WPML meta keys in your import file and follow our official guide for importing posts or products, then connect them using our WPML Export and Import add-on:
https://wpml.org/documentation/related-projects/wpml-export-and-import/

Note you would need to import both language post and then connect them, it is not possible to connect translation to an existing content without custom code.

Please let me know if anything is unclear or if you need further guidance.

Regards,
Dražen