Background of the issue:
I have posts duplicated across several languages on my site, hidden link. I am trying to manage canonical tags for these duplicated posts.
Symptoms:
The canonical tags for duplicated content always point to the original language version.
Questions:
How can I bulk detach duplications from the source in WPML?
In short, WPML does not have a feature to bulk disconnect duplicates from originals. Nonetheless, I can offer some insights and recommendations:
1. First, ensure that detaching the translation actually brings you to your expected result. Detach one post manually, and check if the canonicals behave as you expect.
There are 2 ways to bulk detach the duplicates. Please note that they're not official recommendations from WPML, so please make 100% sure you have a backup before proceeding:
1. Check this custom plugin that does that: hidden link
2. Manually edit the DB to detach duplications: it is possible to remove the duplicate state of a translated product by deleting the '_icl_lang_duplicate_of' meta_key entry in the wp_postmeta table of the database.
I have installed the plugin, but I can not activate it. It says :
"WPML TM Translate Independently has been deactivated. It requires both "WPML Multilingual CMS" and "WPML Translation Management" to be active."
But I can not find a plugin named "WPML Translation Management" anywhere.
Thanks! The DB alteration worked perfectly.
I have another similar issue: all taxonomy pages' canonical tags point to the default-language taxonomy page. How can I fix that?
Thanks!
Please send me an example of such page, as well as a screenshot that shows precisely what you are referring to. I want to check it myself, in more detail.
This depends on which SEO plugin you are using. Since you haven't shared your debug information, I can't offer a more detailed answer. Please share it, as explained here:
I checked Yoast's documentation, and it seems that this can be done from within the taxonomy editor, directly.
Visit the taxonomy editor in the desired language (you can change the admin language by clicking on the flag, on the top bar), and set the canonical directly. More details:
hidden link
Please note that this is Yoast feature, not a WPML one, so I cannot totally ensure how the process works.