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.

Our next available supporter will start replying to tickets in about 5.75 hours from now. Thank you for your understanding.

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

Problem: I'm trying to import an xml file with all the post from another worpdress installation that manages languages with polylang to a new wordpress installation where I installed Wpml and I'd like it to recognise the post's language Solution: What you are trying to achieve will not work outside the box, by WPML simply recognizing languages, because in default XML WordPress imports there is no language data. You could try the following though:

- https://wpml.org/documentation/related-projects/migrate-polylang-wpml/ - follow this documentation using the "Migrate Polylang to WPML” Plugin (it hasn't been very actively developed for the last few years, though)

- The other option is the following: https://wpml.org/documentation/related-projects/wpml-all-import-plugin-website-import-with-wpml/

So you would need to prepare your XML files as described there.

This topic contains 3 risposte, has 2 voci.

Last updated by Bruno Kos 2 mesi, 2 settimane fa.

Assigned support staff: Bruno Kos.

Autore Post
July 29, 2019 at 1:42 pm #4300369

beatriceF

Tell us what you are trying to do?
I'm trying to import an xml file with all the post from another worpdress installation that manages languages with polylang to a new wordpress installation where I installed Wpml and I'd like it to recognise the post's language

Is there any documentation that you are following?
Just tried a few google searches without any luck

Is there a similar example that we can see?
I can give you the xml file I'm trying to import

What is the link to your site?
where I got the xml from hidden link
destination site hidden link

July 30, 2019 at 6:41 am #4305063

Bruno Kos
Supporter

Languages: Inglese (English )

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

Hi,

Thank you for contacting WPML support!

What you are trying to achieve will not work outside the box, by WPML simply recognizing languages, because in default XML WordPress imports there is no language data. You could try the following though:

- https://wpml.org/documentation/related-projects/migrate-polylang-wpml/
- follow this documentation using the "Migrate Polylang to WPML” Plugin (it hasn't been very actively developed for the last few years, though)

- The other option is the following:
https://wpml.org/documentation/related-projects/wpml-all-import-plugin-website-import-with-wpml/

So you would need to prepare your XML files as described there.

Please see both documents in detail, as they cover everything you need to know related to migrations.

Regards,
Bruno Kos

July 30, 2019 at 9:54 am #4306585

beatriceF

Hi Bruno
thanks for your help,
I've already tried the first option but didn't work as I needed.
Second option is actually not easy in my opinion and takes a lot of time so I've decided to import all posts regardless of the language and then link them manually from wordpress with the option wpml provides inside the edit of the single post.

thank you anyway
Beatrice

July 30, 2019 at 10:28 am #4306909

Bruno Kos
Supporter

Languages: Inglese (English )

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

Hi Beatrice,

I've decided to import all posts regardless of the language and then link them manually from wordpress with the option wpml provides inside the edit of the single post.

Yes, that also sounds as a possible solution (changing the language and using the "connect with translations" option), given the number pages/posts you have of course.

I am marking this thread as resolved then!

Regards,
Bruno Kos