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.

Tagged: 

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:

Screenshot 2023-03-21 at 18-36-56 Edit Post “The Ultimate Guide to Windows 10 LTSC Keys Benefits Features and Activation” ‹ All Good Keys — WordPress.png
Screenshot 2023-03-21 at 18-33-44 Posts ‹ All Good Keys — WordPress.png
March 23, 2023 at 6:15 am #13311295

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for reaching out to us. I will try my best to assist you in this matter.

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,
Prosenjit

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
-Please make a backup of site files and database before providing us access.
-If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:
hidden link

Looking forward to your response.

Best Regards,
Prosenjit

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,
Prosenjit