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
10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 - -
16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 - -

Supporter timezone: Asia/Jerusalem (GMT+03:00)

This topic contains 5 replies, has 3 voices.

Last updated by Itamar 1 year, 2 months ago.

Assisted by: Itamar.

Author Posts
March 15, 2024 at 9:50 pm #15416078

ricardoG-35

Tell us what you are trying to do? I am trying to configure WPML correctly after switching from Polylang

Is there any documentation that you are following? Yes I have followed the WPML documentation

Is there a similar example that we can see?
Ex. hidden link this is the staging site with WPML

Original site content looks like this: hidden link

What is the link to your site? hidden link

We are trying to switch from polylang to WPML, we already did with polylang Spanish translation manually and we are trying to add another language, I have install it and tried to configure, however some pages look broken in the automatically translated pages, seems like I am missing some configuration.

Currently working with PT our theme uses ACFs and Elementor theme templates in order to display the pages

March 16, 2024 at 2:35 pm #15416861

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

Polylang plugin is not compatible with WPML, so you can not have one language in Polylang and other language in WPML.

Please copy your website to a staging version to avoid disrupting the live website and follow the steps below to migrate Polylang data to WPML first:

https://wpml.org/documentation/related-projects/migrate-polylang-wpml/

Please consider that it is not possible to migrate all data and if you see issues you need to translate.

Please go to WordPress Dashboard > Translation Management and click the pause button for the automatic translation as it might not work at this stage.

After you successfully migrate the data and Spanish version works ok then you are welcome to add another language.

Regarding ACF please read the documentation below as you will need a glu plugin to make it compatible with WPML:

https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/

And here is more information about Elementor templates:

https://wpml.org/documentation/plugins-compatibility/elementor/

Thanks.

March 21, 2024 at 8:05 pm #15438304

ricardoG-35

Thanks I was able to do it, I just have some minor issues, such as: In my original site (old) we assigned custom post types for each language (english and spanish) they were assigned correctly once I used the plugin of migrating from polylang to wpml, however there is an issue with the translations to new languages.

For instance I am taking English as the default language and from there I will get my translations I added French and Portuguese, the thing is that in my translations I did not translate Taxonomies, so we have the name of the post translated but still using English taxonomies.

question is I have a plugin that searches that CPT queries by some of the taxonomies based (assigned to English) but when I switch to French for instance it is not showing all my translated posts only a few.

You can see that search plugin here: hidden link check in English and spanish by degree and you will see they are appearing but in French lots are missing.

If I need to translate the taxonomies? to the translated language will they update in all the already translated content or I have to rerun it?

Note: We moved to our site hidden link as Production site

March 23, 2024 at 8:15 am #15442816

Itamar
WPML Supporter since 02/2016

Languages: English (English )

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

Hi,

Christopher is on vacation, so I'll continue to help you with this issue.

I've read this ticket and am glad the Polylang is solved now.

I'm trying to understand the question you have now.

You wrote: "You can see that search plugin here: hidden link check in English and spanish by degree and you will see they are appearing but in French lots are missing."

I'm unsure what to check. Here is what I try. I go to the French homepage here: hidden link. There, in the header, I can see a search option. Please see the attached screenshot.

Is this where the problem is?
Please tell me the exact steps I should take to see the problem.

You also asked: "If I need to translate the taxonomies? to the translated language will they update in all the already translated content or I have to rerun it?"

Yes, you need to translate the taxonomies and then update the translated content to apply the translated taxonomies to it. How you do it may depend on how you translate your content. Please read our guide on taxonomy translation at the following link and let me know if you have further questions or need further help with this issue.

https://wpml.org/documentation/getting-started-guide/translating-post-categories-and-custom-taxonomies/

If you need further help, please share your site's Debug information with us. You can read about it here.

http://wpml.org/faq/provide-debug-information-faster-support/

Regards,
Itamar.

2024-03-23_10-05-37.jpg
March 25, 2024 at 3:47 pm #15447802

ricardoG-35

This is a video I hope it helps to make it a little bit more clear

hidden link

March 26, 2024 at 2:34 pm #15451735

Itamar
WPML Supporter since 02/2016

Languages: English (English )

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

Hi,

Thanks a lot for the video. It helped me understand the problem a lot!

A. I'm unsure, but things may be working correctly with Spanish because you still have its separate custom post type "programas" and its taxonomies "degree_es", "school_es", and "majors_es".

B. You must translate and sync all the taxonomies in the other languages for things to work. You should translate and sync the taxonomies in WPML -> Taxonomy Translation. You can read about Taxonomy Translation in our guide here.

https://wpml.org/documentation/getting-started-guide/translating-post-categories-and-custom-taxonomies/

Please also check the "How to Maintain Your Taxonomy Structure Across Languages" section. If the "Program" custom post type has its taxonomies in the Hierarchy, you need to sync it across the languages.

C. If that still does not solve the issue, try the following options in WPML's troubleshooting section.

1. Take a backup of the DB of your site.

2. Go to WPML -> Support -> Troubleshooting (link)

3. Once on the troubleshooting screen, press the following buttons and check if it helps. Press each button at a time and wait for the process to complete.

- 'Synchronize posts taxonomies' for 'Program'

- 'Clear the cache in WPML'

- 'Remove ghost entries from the translation tables'

- 'Set language information'

- 'Fix terms count'

- 'Fix post type assignment for translations'

*** Please make a backup of your database before using this.***

D. If, after all, the problem persists, then it might be in the code of your custom plugins.Please note that supporting custom code is out of the scope of our support forum. You can refer your developer to our documentation for developers. The main page is here.

https://wpml.org/documentation/support/

Starting with our guides on Achieving WPML Compatibility for Your Themes and Plugins would be good.

https://wpml.org/documentation/support/achieving-wpml-compatibility-for-your-themes-and-plugins/

In the following links, you will find the reference for the WPML hooks.

https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/

In your case, you may want to look at the following hooks.

https://wpml.org/wpml-hook/wpml_object_id/

https://wpml.org/wpml-hook/wpml_element_trid/

https://wpml.org/wpml-hook/wpml_get_element_translations/

If you try one of our hooks in your code and something is not working as expected, we will help you look into the matter and advise. If you have any questions about our developer guides, we will gladly answer them. But we can not provide the solution for you. As I mentioned, this is out of the scope of our support forum. Please refer to our support policy here.

https://wpml.org/purchase/support-policy/

Regards,
Itamar.

The topic ‘[Closed] Polylang to WPML transition’ is closed to new replies.