Перейти к содержимому Перейти к боковой панели
Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 -
- 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 -

Часовой пояс службы поддержки: Asia/Kathmandu (GMT+05:45)

Помечено: 

Эта тема содержит 0 ответ, имеет 1 голос.

Последнее обновление: rogerT-10 2 месяца назад.

При содействии: Shekhar Bhandari.

Автор Сообщения
24 июня, 2025 в 8:12 дп #17163429

rogerT-10

Background of the issue:
I needed to turn off the option 'Language filtering for AJAX operations' because of cookie issues with our privacy regulations. I am looking for a way, possibly with some code, to have a fallback to the default language (EN) when there are no translations available for a particular page/post. When a user clicks to switch the language, it should open the default version (EN).

Symptoms:
Now if you click on the language bar to switch the language (FR or DE) and if for that language there's no translation for that page it will redirect you to the home page.

Questions:
How can I activate fallback to the default language in WPML?
Is there a code-based solution to achieve language fallback to English when translations are unavailable?

Тема '[Закрытые] How to activate fallback to the default language' закрыта для новых ответов.