Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 - -
- - - - - - -

Supporter timezone: Africa/Cairo (GMT+02:00)

Tagged: 

This topic contains 0 replies, has 1 voice.

Last updated by Osama Mersal 1 day, 2 hours ago.

Assisted by: Osama Mersal.

Author Posts
January 23, 2025 at 7:18 pm #16629515

chrisD-39

Background of the issue:
I am working to test migrating batches of content in a secondary language and setting a Category and a custom taxonomy called Region on each post. To do this, I am using a combination of WP All Import Pro and WPML Export and Import. Ideally, the content will be imported initially as a Draft, since the majority will be in a secondary language and not the default, and then I will use WPML Export and Import to connect the dots on the language side and publish all of the updated content. I have followed the documentation and video provided here: https://wpml.org/documentation/related-projects/wpml-export-and-import/preparing-import-files-for-wpml-export-and-import/ and then explored visibility further by following the documentation here: https://wpml.org/documentation/related-projects/wpml-export-and-import/managing-the-visibility-of-imported-multilingual-content/.

Symptoms:
The content either imports as a Draft and remains as a Draft (ignoring the _wpml_import_after_process_post_status field set up in my import template) or it imports as Published and will display the secondary language content in the wrong places on the front end until I run the WPML Export and Import. Additionally, the Region taxonomy is not being set correctly after running WPML Export and Import - the result is the default language version of the Region is applied incorrectly, breaking the translated taxonomy archive from correctly showing the content on the front end.

Questions:
How can I ensure that content imported as a Draft is published correctly after using WPML Export and Import?
Why is the Region taxonomy not being set correctly after running WPML Export and Import?

January 23, 2025 at 8:36 pm #16629867

chrisD-39

My test import to the sandbox site created has been done via WP All Import, but WPML Export and Import is not installed. When I try to install myself, I get an error. Right now, my import has happened, but the translation piece has not yet been run.

January 27, 2025 at 3:05 pm #16638475

chrisD-39

Checking in here. I'm unable to complete the test, because the WPML Export and Import plugin is not installed and active on the sandbox site that was set up. Could you please add that so I can complete the test?

January 29, 2025 at 8:38 am #16644863

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

I'm Osama from WPML forums support. I'll be glad to help you today.

First of all, sorry for the late reply; it was due to a higher workload.

I activated the "WPML Export and Import" plugin. Please replicate the issue and let me know the steps to reproduce it.

Best regards,
Osama

January 31, 2025 at 8:01 pm #16657148

chrisD-39

Thank you! I performed 2 tests on the sandbox site, with the following results.

Test 1:
Imported as a Draft with WP Alli Import and configured the _wpml_import_after_process_post_status column to declare that WPML Export and Import should publish the posts after processing. The result was the posts remained in Draft status, but the category did align successfully.

Test 2:
Imported as Published with WP All Import and created a second category that has the same name as it's English counterpart. Strangely, the posts were imported directly to the correct language without running WPML Export and Import, and the category was again aligned successfully.

I am going to try another test in my staging environment. The one thing this sandbox is missing is a custom taxonomy, which is a part of our intended use case. I'll update here once I've run more tests in our environment.

January 31, 2025 at 9:02 pm #16657210

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Please take your time and let me know the result of the tests and if you need further assistance regarding the issue.

Best regards,
Osama