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

Supporter timezone: America/Los_Angeles (GMT-07:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Bobby 1 year, 10 months ago.

Assisted by: Bobby.

Author Posts
September 13, 2023 at 3:47 pm #14391421

gregorN

When we switch languages on this, let's call it basis page, hidden link, the landingpage in French is not the same as in Italian.

When switching to French, we are led to hidden link
When switching to Italian, we are led to hidden link

Can we set a rule like "whenever a page is not available in the foreign language, guide to page XYZ"?

September 15, 2023 at 1:59 am #14400067

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hello,

At the moment there is no such feeature that would allow you to do this, however, you could utilize the option to " use translation if available or fallback to default language" when a translation is not available which would simply display the content of the default language.

https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/#:~:text=Go%20to%20the%20WPML%20%E2%86%92,all%20post%20types%20you%20need.

For any custom work I would recommend reviewing our Hooks Reference here:
https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/

The topic ‘[Closed] Target page if page is not available in foreign languages’ is closed to new replies.