Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client wants to show default language posts for three languages when no translation is available, but for one specific language, they do not want to show default language posts if a translation does not exist.
Solution:
We explained that the settings for displaying default language posts when no translation is available apply to all languages and cannot be set differently for one specific language. If the client uses the setting "Translatable – use translation if available or fallback to default language", all languages will behave the same way. We also provided a link to our hooks reference for custom coding, which is outside our support scope:

If this solution does not seem relevant to your situation, please open a new support ticket with us.

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.

Our next available supporter will start replying to tickets in about 5.59 hours from now. Thank you for your understanding.

This topic contains 4 replies, has 2 voices.

Last updated by simeaM 10 months ago.

Assisted by: Osama Mersal.

Author Posts
January 16, 2024 at 8:36 am #15188283

simeaM

Tell us what you are trying to do?
I want to show no Default Language Posts for a single language.
The Setup is like this:
I have for Languages. On Three, I want to show the default language for a post if it is not translated. But for one Language, I don't want to show the default language posts if there is no translation.

Is there any documentation that you are following?
I Can't find any documentation.

Screenshot of Settings ‹ Unisono — WordPress.jpg
January 16, 2024 at 9:30 am #15188566

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

These settings apply to all languages, so it's not possible to set different settings for only one language.

If you use "Translatable – use translation if available or fallback to default language", all languages will have the same behavior.

Best regards,
Osama

January 16, 2024 at 9:54 am #15188647

simeaM

Is There a PHP Hook or something like that where i can change the Settings over Code?

January 16, 2024 at 9:55 am #15188678

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

I'm afraid that custom coding is out of our support scope. Here is our hooks reference. (https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/)

Best regards,
Osama

January 16, 2024 at 10:00 am #15188742

simeaM

Hi Osama

Thanks for the Help. Looks Awesome, thanks.
Have a wonderful day.