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.

This topic contains 1 reply, has 0 voices.

Last updated by Marcel 1 week, 2 days ago.

Author Posts
January 16, 2025 at 1:54 pm #16602352

nataliyaN-2

Background of the issue:
I am trying to manage the display of translation links on my WordPress site using WPML. I want the links to translations to appear only on posts, not on pages, because I will be using my own switch for pages.

Symptoms:
Links to translation of posts are displayed on pages as well, even though the setting specifies posts only.

Questions:
Is it possible to turn off translation links for pages while keeping them for posts?

January 17, 2025 at 11:19 am #16605669

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Hi,

before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.

Could you clarify what you mean by "translation links"? Are you referring to the language switcher functionality? We don’t have a specific feature for that, and this is the first time I’ve encountered such a requirement.

However, you could integrate a custom language switcher additional for posts using PHP by filtering for specific post types. For instance, you can use the !is_page() condition to exclude pages while displaying the switcher on other content types.

Best regards,
Marcel