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 14 replies, has 3 voices.

Last updated by Prosenjit Barman 1 year, 5 months ago.

Assisted by: Prosenjit Barman.

Author Posts
December 18, 2023 at 8:37 am

kwok-hoL

the excluded taxonomy are all displayed

December 18, 2023 at 9:05 am
December 18, 2023 at 9:24 am #15081511

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

hidden link

Here's the sandbox where he can do as you wish, so install if something else is required.

Can you reproduce the exclusion issue here? Make sure only to use default Posts categories, perhaps 2-3 of them.

Let us know if you have any questions!

December 18, 2023 at 9:38 am #15081575

kwok-hoL

Hello

Sorry I am not familiar with this. Do you mean I need to create taxonomy items on sandbox and try it here? But I have the paid plugins associated with the elementor pro blog post widget so it may not be accurately try it out on sandbox and to show you what is happening.

Could you let me know what information I need to add to sandbox so you can see the actual problem?

December 19, 2023 at 10:23 am #15091295

kwok-hoL

Hello

Just wanted to know if you can go into my website to check the taxonomy issue, thanks!

December 20, 2023 at 10:53 am #15100663

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

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

Hi There,
I hope you're doing well.

After reviewing your conversation with Bruno, I understand the issue at hand. Upon inspecting your site's backend, I noticed that while your Categories have been translated into other languages, your Posts have not. This means that the translated Categories have not yet been assigned to any Posts.

This is important to note because your WPML Settings for "Posts" are configured as "Translatable - use translation if available or fallback to default language." Therefore, in the absence of translated Posts, the default language versions are displayed on the translated pages.

The terms that you've excluded are also not working because these terms don't exist in other languages. As a result, all default posts are showing on the translated page.

To solve the issue, you either need to translate the Posts by going to "Posts > All Posts" or don't translate the "sports-venue-and-teams" page at all. In this way, only the default contents will be loaded as fallback.

If you prefer to translate the posts, once the posts are translated, ensure to update the default page and its translation again.

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

Best regards,
Prosenjit

December 21, 2023 at 3:03 am #15106441

kwok-hoL

Hello Prosenjit

Thanks so much for your clear explanation!

The posts currently on my website are for testing only. My website allows front-end submitted post so users can submit posts in any languages. That is why I set post as "Translatable - use translation if available or fallback to default language.".

The taxonomy like "FOOTBALL VENUE/TEAMS" or "YOGA VENUE/TEAMS" are category options for users to select for their submitted posts. I thought when I select "Translatable - use translation if available or fallback to default language.", if I translate all of the taxonomies then the taxonomy can be displayed in 2nd language (if users switch website into 2nd language) and the post subject and content will remain in the language the users use.

If this is not the case, then would you please let me know how I can display different language of taxonomy on the post (when users switch website into 2nd/3rd language), and the post subject and content can be in user submitted language? It is now happened to 3 pages as below. Also my frontpage and more than 50+ pages have post archive for promotion.

hidden link
hidden link
hidden link

On " hidden link ", the category plugin has all been translated. When I switch the website into 2nd language, the taxonomies are remained in default language and all the posts cannot be shown (just empty).

Let me know if you need any info about the website setting, thanks!

Anka

December 22, 2023 at 3:24 am #15113757

kwok-hoL

Hello Prosenjit

Sorry for 2nd message....

"The terms that you've excluded are also not working because these terms don't exist in other languages. As a result, all default posts are showing on the translated page." ----- I would like to know how I can have all excluded terms valid on all website languages? Thanks!

Anka

December 22, 2023 at 4:03 am #15113953

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

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

Hello Anka,
Thank you for sharing the details.

If you set the option to "Translatable - use translation if available or fallback to default language," translated taxonomies will be displayed when available; otherwise, it defaults to the original language.

Now that the taxonomies have been translated, users need to switch to their desired language and then choose the corresponding translated category for their posts so that the Translated category can get assigned to that post. Please check this screenshot: hidden link.

Once the user submits a post, it will remain visible in all languages due to the "Translatable - use translation if available or fallback to default language" setting, until it's translated. But, since you have added the translated taxonomy at the time of posting, the post will display the translated taxonomy with it.

It's important to note that category exclusions will be handled automatically. When you translate the page by excluding categories, their translations are also supposed to be excluded from the translated page.

Please give it a try and let me know if that helps. If you need further assistance, I will be happy to help.

Best regards,
Prosenjit

December 26, 2023 at 10:25 am #15129603

kwok-hoL

Hello Prosenjit

The translated taxonomies cannot be displayed when I switch to 2nd language. Please see attached image. If I switch to 2nd language (Chinese Traditional), I would like to know how the translated taxonomies (in 2nd language) can be displayed when the post is not translated (since it is user submitted). I only need the taxonomies translated if users change the website in other languages.

For the exclusions, do you mean that I also need to translate the excluded items at the backend (dashboard)? Thanks!

Anka

translation issue.jpg
December 26, 2023 at 4:00 pm #15130438

kwok-hoL

Hello Prosenjit

I should be more clear....

It is mainly the language showing to all the users on the website but not the submit form issue. Like the image I sent in previous message, the entire website is switched to 2nd language (Chinese Traditional) but the taxonomies are still in English. So please let me know how to make all the translated taxonomies displayed when 2nd language is chosen, thanks!

Anka

December 27, 2023 at 6:05 am #15131136

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

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

Hello Anka,
I hope you're doing well.

I'd like to clarify that if you set the translation preference for Posts to "Translatable – use translation if available or fallback to default language,"(to display the untranslated posts in other languages), it means that the post and taxonomies linked to the post will be displayed in the default language. This will be the case even if you have translated the taxonomies.

It's important to note that this setting impacts the entire post type and its associated taxonomies. For a more detailed understanding, please check the link below:

- https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/#how-to-display-untranslated-taxonomy-values-as-a-fallback:~:text=Entire%20post%20types%20and%20taxonomies

The translated taxonomy will be visible only after you translate the post. To demonstrate this, I've translated a post on your site, and you can see that the taxonomy now appears in the translated form correctly. Please have a look at this screenshot: hidden link

As WPML does not support the feature of displaying translated taxonomy next to an untranslated post in a different language, achieving this specific functionality would require the integration of custom code. Since providing support for custom code is beyond the scope of our support, I' will not be able to offer direct assistance with coding. However, I'm more than willing to provide guidance and advice on this matter to the best of my ability.

Please check this Hook reference guide and hope it will help: https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/

You can also hire a developer, who specializes in customing WPML plugins from here: https://wpml.org/contractors/

I hope you can understand. If you have any more questions or need further clarification, please feel free to reach out. I will be happy to help.

Best regards,
Prosenjit

December 28, 2023 at 9:58 am #15134057

kwok-hoL

Hello Prosenjit

Thanks so much for your detailed explanation!

Now I know more and understand the limitation. But I also wanted to know if a user submit blog post form to my website, the language of taxonomies will be displayed based on the language the user choose for filling the form, is that right? If it is the case, if a user use 2nd language (Chinese Traditional) to submit post, the taxonomy should be in 2nd language when the website is switched into 2nd language. However, when switching to default language (English), the taxonomy will still be in 2nd language (Chinese Traditional)..... am I right?

If it is the case, then it would be a problem as I thought the taxonomy is an individual party that the taxonomy language will be adopted to the website language. I will check the Hook reference guide first and see if I need your support to make this happen. I may not hire a developer if I can do it myself.... I know it will be difficult since I am not a pro. 🙁

For the term exclusions, do you mean that I also need to translate the excluded items to 2nd language at the backend (dashboard)? But I actually translate all the terms in 2nd language so I don't know where I can do more to have the exclusion function works, thanks!

Anka

December 31, 2023 at 3:58 am #15138375

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

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

Hi Anka,
I hope you're doing well. Sorry for my delayed reply; I was away on a weekend break and vacation.

Indeed, you are right! As the taxonomies have been translated into Traditional Chinese, if a user submits a post in that language, the corresponding Chinese taxonomy will be displayed when accessing the Archive page in Chinese. However, since the default setting for posts is configured to appear in multiple languages, these Chinese posts, along with their Chinese taxonomies, will also be visible on the English pages.

Taxonomies are part of the post type. So the translation setting you choose for a post type will also be applied to its taxonomies. I hope you can understand.

Regarding the term exclusion issue, I understand you've translated the taxonomy terms. However, since these translated terms aren't linked to any posts, all posts in the default language appear on the Chinese page as per the Translation setting for Post type, thereby overriding the exclusion rule you've added.

I'm sorry to say that without a custom coding approach, managing the taxonomies in your preferred manner is not achievable at this time. I understand this isn't the news you were hoping for, as it's a feature not yet implemented in WPML. However, your suggestion is valuable and I'll pass it on to our product team to see if they have any plans to incorporate it in the future.

I sincerely appreciate your understanding in this regard and apologize for any inconvenience this may cause. If there is anything else I could help you with, feel free to let me know. I will be happy to help.

Best regards,
Prosenjit

January 2, 2024 at 8:59 am #15142376

kwok-hoL

Hello Prosenjit

No problem! It was everyone's holiday!

I initially thought the taxonomy is an individual item that the translation can be switched based on the website language. It is quite a big issue right now.... I just wanted to know if WPML has a custom coding team for handling consumer's special coding requests?

For exclusion, I understand the limitation..... is it also workable for using custom coding to resolve?

Thanks!

Anka

The topic ‘[Closed] the excluded taxonomy are all displayed’ is closed to new replies.