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
- 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 -

Supporter timezone: Asia/Dhaka (GMT+06:00)

This topic contains 4 replies, has 2 voices.

Last updated by Prosenjit Barman 1 year, 1 month ago.

Assisted by: Prosenjit Barman.

Author Posts
March 10, 2024 at 5:36 pm #15392846

deryckJ

Hello,

I recently added a post to my site:

hidden link

Today's was the first post in about 18 months. As with all my previous posts, a single post template was used. (I use Elementor.)

In addition to the main language, the post has three translated languages (done manually). The translations are marked as 100% complete.

Unfortunately there is a problem with the translated pages. Specifically, the title of the post and slugs properly show in the translated language. But the body of the post only shows in the original language.

I already tried the “Clean up” options in WordPress under WPML > Support > Troubleshooting, but that did not help.

I suspect that the issue is related to blocks. In the past, when translating my posts, there would be section for translating the entire body, plus separate sections for translating the individual blocks. That was redundant, but not a big deal. I was delighted when translating the post today to see that this redundancy seemed to be eliminated now. For this latest post there was a field to translate the post body but no fields to translate individual blocks.

I suspect there were no fields for individual blocks because I did not use blocks to create the post.

I look forward to receiving a solution.

March 10, 2024 at 8:03 pm #15392921

deryckJ

Hello,

Since a weekend response is not possible, I used a workaround solution for the issue mentioned in my previous message.

PREVIOUS ISSUE
Namely, for the issue I described in my previous message, I edited each post with Elementor and overwrote the original language body with the respective translations.

After I used that workaround solution, upon further investigation I noticed that in WordPress > WPML > Settings the following two options were selected:
“When you receive completed translations, publish the translated post when original is also published (default)”
“When you publish the original post, do not publish the post translations.”

To resolve the issue that was previously described (the translation of the body of the post not being shown) I suspect that the second setting alluded to above might need to be changed to “When you publish the original post, publish the post translations.” Is that correct?

NEW ISSUE
I noticed a related problem. The posts do not show the language that corresponds to the single post template for that language (eg, in the footer or social sharing text). The only portion that seems to show the correct language is the header/menu. The other parts of the post do not show the correct template for that language. For example, in some instances the original language footer is shown, rather than the footer for the language of the post. In other instance the footer (or other parts of the page) of another translated language is shown rather than the language of the post.

Why is this occurring and how can the problem be resolved?

March 11, 2024 at 7:34 am #15393322

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

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

Hi There,
Thanks for contacting WPML Support.

I understand the issue you're having and will try my best to assist you in this matter.

For the first issue - While checking the default post, I found that the contents had been inserted using the Text editor widget of Elementor. Now, kindly be informed that to translate the contents added using Elementor editor, it is required to have the string translation plugin active on the site. Otherwise, the translated contents will not appear in the frontend.

To address the first problem, start by installing and activating the String Translation plugin on your website. This can be done by navigating to Plugins > Add New > Commercial tab. After activation, please remove the translated pages that you have manually edited, ensuring they are also deleted from the Trash. Following this, make a minor adjustment to the default post, and then proceed to translate the post again. I hope the translation will appear properly after that.

Additionally, if you prefer not to have translations saved as drafts, you should enable the option “When you publish the original post, publish the post translations.” However, it appears this setting does not have any impact on the first issue that you mentioned.

Regarding the next issue - The reason some contents are not showing properly translated is that the template has not been translated into other languages yet, As the Single post template is part of Elementor, please check the guide below and translate the template properly into other languages available on your site.

- https://wpml.org/documentation/plugins-compatibility/elementor/#translate-elementor-templates

The contents on the sharing section and the Footer will hopefully appear properly translated right after that.

Let me know if the information above helps or if you need further assistance in this matter. I will be happy to help.

Best regards,
Prosenjit

March 11, 2024 at 9:29 am #15393813

deryckJ

Hi Prosenjit,

Thank you for your reply.

WPML STRING TRANSLATION PLUGIN
The WPML String Translation plugin is intentionally deactivated. I intentionally deactivated it years ago because that plugin repeatedly crashed my multisite. In fact, I was informed that there was a known issue between the WPML String Translation plugin and multisites.

In the interim, I have consolidated my multisite into one single site. However, I have not tried to activate the String Translation plugin again.

FIRST ISSUE
Regarding the issue I described in my first message, no further action seems to be needed. As I mentioned in my second message, I used a workaround (by copying and pasting the translation into Elementor) and bypassed the Translation Editor (and kept the String Translation plug deactivated). The translated contents do indeed in the frontend.

SECOND ISSUE (single post template)
Thank you for pointing me to that documentation. However, when I go to WPML > Translation Management > Templates, none of my templates appear. However, under WPML > Translation Management > Jobs, the single post templates do appear and are marked as “Completed – Needs update.” A screenshot of that is attached. As with any other translation, the "needs update" should not prevent the translation from showing.

Because the second issue persists (ie, the single post template is not showing the correct language in the non-body portions), and in light of what I mentioned above, how can I resolve this issue?

Screenshot - single post template translations completed.png
March 12, 2024 at 3:38 am #15397672

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

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

Hi There,
Thank you for the update.

If your templates are fully translated, the "needs update" status should not interfere with the display of translations on the frontend. However, when translating templates via the WPML Translation Editor, it's crucial to have the String Translation plugin activated, as without it, translations won't show up on the frontend.

I want to reassure you that there are currently no known issues with the String Translation plugin in a multisite setup. The plugin has received multiple updates and functions seamlessly in a multisite environment.

Now that you've switched to a Single site setup, please ensure to install the String Translation plugin, but remember to back up your site fully first. After installation, try the following steps:

1. Access the default single post template in the WordPress Editor.
2. Make a minor modification in the title and save your changes.
3. Within the editor's language meta section, look for an update icon (see this screenshot for reference: hidden link). Click on this icon to update the translation.

Let me know how it goes. I will be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

The topic ‘[Closed] Posts not showing translated version’ is closed to new replies.