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 9 replies, has 2 voices.

Last updated by Prosenjit Barman 11 months ago.

Assisted by: Prosenjit Barman.

Author Posts
July 22, 2024 at 4:07 pm #15987911

clementV-3

Background of the issue:
A post is published with several tags like 'new'. When the post is old, 'new' is deleted and the tag 'old' is added. The translations don't update correctly in the translated post once it is published. Initially, the translated post would have 'récent' but with the changes, 'récent' ('new' in French) is not removed and 'old' (in English) is added in the French version while it should be 'vieux'. It creates another tag with the English word in the French version, while 'old' and 'vieux' are still connected to each other as their translations.

Symptoms:
The translated post does not update tags correctly. 'récent' is not removed and 'old' is added in the French version instead of 'vieux'.

Questions:
How can I ensure that tag translations update correctly when the original tags are changed?
Why is the English tag 'old' appearing in the French version instead of its translation 'vieux'?

July 24, 2024 at 5:11 pm #15999805

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

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

Hello There,
Thanks for contacting WPML Support.

I understand the issue you're experiencing. If you translated the tag before adding it to the post, the translated tag should appear for the translated post when you update the translation. A new tag should not be added to the translated post.

Could you please try making the following adjustments and check if they help?

1. Go to WPML > Settings and scroll to the 'Taxonomies Translation' section.
2. Set the translation preference for "Tags (post_tag)" to 'Translatable - Only show translated items'.
3. Once done, go to WPML > Support > Troubleshooting.
4. Click on the following buttons:
- Synchronize posts taxonomies (Select 'Posts' from the dropdown before clicking the button)
- Clear the cache in WPML
- Assign translation status to duplicated content
- Set language information
- Fix post type assignment for translations
5. After completing these steps, open the default post, delete the existing tag, and add a new one.
6. Update the translation, clear the caches, and check if the translated tag is showing correctly.

Please give the steps a try and let me know the update. If you need further assistance, I will be happy to help.

Best regards,
Prosenjit

July 25, 2024 at 8:55 am #16002377

clementV-3

Hi,
Thank you for these steps.
I applied all of them. I used to have 'Translatable use translation if available or fallback to default language instead' instead of 'Translatable - Only show translated items'.

But the issue remains.

July 26, 2024 at 4:54 am #16006495

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

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

Hello There,
Thank you for trying out the suggestions.

Since the issue persists, we need to determine if it is specific to your site or a more widespread problem. Please try to replicate the issue in our sandbox environment. The autologin link to our sandbox is provided below.

- hidden link

The WPML plugin and its addons are pre-installed on the sandbox. Please complete any remaining setup steps. Then, install the necessary theme or plugins to replicate and try to recreate the same issue.

If you're able to recreate the issue on the sandbox site, let me know. I will review it and advise you on the next steps.

The primary goal of using the sandbox site is to isolate the issue in a controlled environment, eliminating any server or external factors that might be influencing the behavior on the main site.

Please let me know the update. I will be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

July 26, 2024 at 8:15 am #16007403

clementV-3

Hi,
Yes, the issue persists within the sandbox environment.
I created a post, translated it with WordPress editor, published both (default language first).
Then I went to the default language, used quick edit (usually the issue also takes place when editing the tags in the post directly) and changed the tag 'new' for the tag 'old.

The tag for the translated post is now the English one and not the translated one while both are correctly connected.

July 28, 2024 at 4:42 am #16011637

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

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

Hello There,
Thank you for trying to replicate the issue on the sandbox.

In the Sandbox, I noticed that one of the posts in French is displaying an English tag. However, I couldn't replicate the issue using the following approach:

1. Created a post and simultaneously created a tag for it.
2. Translated the post into French using the WordPress Editor and manually added a tag in French.
3. Quick-edited the default post and modified the tag.
4. Updated the translation. The translated tag appeared correctly for the French post.

Additionally, I tried this approach:

1. Created a tag first and translated it into French from 'WPML > Taxonomy Translation'.
2. Created another post and added the tag to that post.
3. Translated the post into French. The translated tag was added correctly.
4. Quick-edited the default post and changed the tag.
5. When I checked the French post, it wasn't showing any tag because the modified tag hadn't been translated.

Before escalating it to the second-tier team, I need to fully understand the steps to replicate the issue. It's also important to ensure that the approach you're using to add or update the tags is correct. Based on the steps I shared above, could you please check if I'm missing any important steps or details? If you could provide a detailed description of the steps you took, it would greatly help in further investigating the issue.

I hope you can understand. Please let me know the update and I'll be happy to assist you further.

Best regards,
Prosenjit

July 30, 2024 at 9:30 am #16019595

clementV-3

Hi,
Here are more details about my process:

- Created the two tags in English first and translated them into French from Tags>Edit tag> Add translation
- Check the translations are correctly connected in the correct languages.
- Created a post in default language and added the tag to that post. Kept it draft
- Translated the post into French. The translated tag was added correctly.
- Published the English and then the French posts.
- Quick-edited the default post and changed the tags: deleted the 'new' and added the 'old'
- Went to the French post, 'new' was correctly deleted but the tag 'old' untranslated was on the post

July 31, 2024 at 5:33 am #16022905

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

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

Hello There,
Thank you for clarifying the steps.

The reason the tag from the English language is being copied to the French post is that the "Copy taxonomy to translations" option is enabled in WPML > Settings. When you use quick edit to add a tag, this setting causes the same tag to be copied to the translation.

If you don't want the English tag to be copied to the French post, go to "WPML > Settings," uncheck the Copy taxonomy to translations option under `Posts and pages synchronization`, and save the changes.

After doing this, remove the tags from both the French and English posts. Then, update the tag on the default post. This tag won't be copied to the translated post. Please note that if you update anything on the default page/post using Quick Edit, you will need to update the translation to see the changes reflected in the translated post.

I hope you can understand. Feel free to let me know if you need further assistance or clarification. I will be happy to help.

Best regards,
Prosenjit

July 31, 2024 at 8:28 am #16023591

clementV-3

Hi,
Thank you but I don't think that really solves the issue.
I just want the tags to be completely synchronized. I add tags, I remove tags, the posts and their translation equivalent have the same tags and their translation equivalent.

I'm afraid not copying taxonomy to translations is going to mess up things more.
I’ll have tags for a language connected to their translated versions, but the translated posts won’t have the corresponding translated tags.

August 1, 2024 at 3:42 am #16027370

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

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

Hi There,
Thank you for the update.

I understand what you're looking for. However, to ensure taxonomies appear correctly in the translation, you need to update the translation after adding the taxonomy to the default post. Even if you add the taxonomy via Quick Edit, you still need to update the translation so that the translated taxonomy can appear correctly on translation. Right now, this step is crucial to keep the taxonomies correctly synchronized across languages.

Updating the translation ensures the translated taxonomy is correctly associated with the translated post. Otherwise, with the 'Copy taxonomy' option enabled, the default tag will be copied to the translation.

I hope you can understand. After adding the taxonomy, update the translation and check if you're still experiencing any issues. If you need further assistance or clarification, please let me know. I'll be happy to help.

Best regards,
Prosenjit

The topic ‘[Closed] Updating tags’ is closed to new replies.