I would like to add multiple hreflang tags for the same language (e.g. de-DE and de-CH) pointing on the same URL, but it seems that WPML only allows one tag per language by default.
Could you please let me know if there is a way to fix this problem or if there is a recommended procedure to add multiple hreflang tags for the same language? If it's not possible, are there any third party plugins or solutions you can recommend? Thank you.
Thank you for contacting WPML support, I'd be happy to help you with this issue.
By default, WPML supports one hreflang tag for one language. If you want to add more hreflang tags for a language, you can try to use the filter hook "wpml_hreflangs". This is for example:
Note: I would like to inform you that helping you with custom code, is out of the scope of WPML. If you are not able to accomplish this, I would recommend you contact one of our certified partners who will be more than happy to help you with this. In this link, you will find a list of our certified partners: https://wpml.org/contractors/
Look forward to your reply.
Thanks
The topic ‘[Closed] Multiple hreflang tags for one language and one url’ is closed to new replies.