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: Exception
This topic contains 5 replies, has 2 voices.
Last updated by othmaneB-4 1 year, 7 months ago.
Assisted by: Prosenjit Barman.
Author | Posts |
---|---|
March 21, 2023 at 6:38 pm #13297539 | |
othmaneB-4 |
I am trying to: I have English posts that are appearing in Spanish blog Link to a page where the issue can be seen: hidden link I expected to see: Not to see english posts in the spanish blog Instead, I got: |
March 23, 2023 at 6:15 am #13311295 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hello There, I understood that one of the Blog posts in English is appearing in the Spanish version of the Blog. While checking the debug info, I noticed that the Translation preferences for the "Posts" is set to Translatable use translation if available or fallback to default language. That means if the Translation for the post is not available, then the Post in the default language will appear in the Translated version of the page. More information is available here: https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/#using-the-default-language-as-a-fallback-for-untranslated-content While checking the screenshots you've shared, I noticed that the post requires a translation update(Screenshot: hidden link). Maybe for that reason, the English post is showing in the Spanish blog as Fallback. Will you please check by updating the translation? If you're using any caching plugin, then please try clearing the caches also. I hope it will help. Let me know how it goes. Best Regards, |
March 23, 2023 at 4:21 pm #13317275 | |
othmaneB-4 |
Hi, I tried the above but it didn't work, i created another two English posts and they are appearing again in the Spanish blog. |
March 24, 2023 at 7:37 am #13320577 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hi There, Thanks for trying out the suggestions. Since the issue persists even after that, I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it. Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you. IMPORTANT Looking forward to your response. Best Regards, |
March 27, 2023 at 6:50 am #13334155 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hello There, Thanks for sharing the credentials. I have checked the issue and am happy to inform you that the problem is fixed now. The Pages and Posts were set to display the default contents if the translation is not available. As most of the posts in English are not translated yet into the Spanish language, those English Post were appearing in the Spanish version of the page, according to the configuration. I changed the configuration to display the Translated contents only and that fixed the issue. Kindly check this video(hidden link) for a better understanding. From now, only the posts that are translated in Spanish Language will appear in the Spanish blog page. Let me know if there is anything else you need help with. I will be happy to assist you. Best Regards, |