This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing issues where the default language content is not being displayed correctly on their website.
Solution: We recommend going to WPML -> Languages and in the 'Make themes work multilingual' section, check the box for "Adjust IDs for multilingual functionality". This should resolve the issue with the default language content not displaying properly.
If this solution does not seem relevant to your situation, please open a new support ticket with us.
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.
I have had some issues with WPML and CPU issues. But now I see that the default language is not being displayed. See hidden link. The description should be dutch and is in English. The English version is English, see: hidden link.
Once the staging site is set up and ready for testing, you can reply here with the credentials to login. Please let me know if it's okay for me to disable plugins/theme on the staging site. The next reply will have private fields where you can safely send credentials. Thanks!
Thanks for your patience while I was troubleshooting. I tried to reproduce this in a clean install but I wasn't able to. I set your site in minimal settings and ran the clean up steps, but that didn't resolve it either. I did however notice that when I disabled the plugin "Category Order and Taxonomy Terms Order", I then saw the original description for both categories, instead of the English.
What I finally did to fix it was to delete the English translation of the parent category "Mushrooms". I then went to Taxonomy Translation and retranslated it. Then, I went to Heirachy Syncronization and synced the product category so that the child categories got reassigned under the Mushroom translation. Lastly, I went to WPML -> Support -> Troubleshooting and in the clean up section, I ran the first option to syncronize product taxonomies, which assigend the translated products to the new Mushroom Translation.
Can you test these same steps on the live site? You can test without minimal settings first and see if just deleting the translation and recreating it resolves it. Note: Please be sure to use WPML -> Taxonomy Translation to translate the parent categories, and not just changing the language switcher in the dashboard. Let me know the results.
Hi there. Disabling the plugin resolved the issue on the main domain. However now the translation is not working on the .com website. Changing the translation is not solving the problem.
Lauren is not available today, once you translated the category in "WPML -> Taxonomy Translation" try the following:
- Clear all your caches
- Go to "Products > Categories > English" and edit this category.
- Don't make any changes here, only click on "Update"
Would it be possible for me to install a plugin (Adminer) that might allow me access to view the database on the staging site? I need to see if the category translation exists in the database and if so, if there is a way we can reconnect them. Let me know if I have permission to do that and if so I'll continue troubleshooting there. Thanks!
The problem is with the catgeories that have the same name. For example: hidden link and hidden link. If the term is translated, like this one hidden link and hidden link it is working like we want. The quick solution is changing the term slug, adding -eng for example. However this is not what we want. We used the following workaround in the past 'https://wpml.org/errata/translated-term-slug-identical-to-the-original-term-slug/', this is no longer working (probably because of the latest update).
The table that holds the translation is icl_translations. I tested the theory of using the same slug on my test site, but here it still shows the translations as expected: hidden link hidden link.
The example that you sent above is a child category, which I thought was showing the translation all along. Is the issue not only happening with parent categories? If you edit the slug of a parent category (for testing only) do you see the correct translation on both languages?
Hi Lauren, yes changing the slug of the categories fixes the issue. I thought the problem was only happening to parent categories, but it is also happening to child categories. Weird that it is works on your test website. Maybe it is only on 'language per domain'?
I don't have the ability to test different languages with different domains in the test install that I set up. Do you have a staging site where you can quickly test that? If not, let me know and I can set up a new site in our cloudways server and try using different domains per language and see if the behavior is different. I"m not sure it will be though, because it seemed to resolve in your test site when I redid the translation. Worth testing for sure though. Also, try using the different options to pass information when using different domains per language (you will find these options in WPML -> Languages in the URL format section).