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?
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.