Home›Support›English Support›[Resolved] Title & Meta Description for Custom post types archive only in default language
[Resolved] Title & Meta Description for Custom post types archive only in default language
This thread is resolved. Here is a description of the problem and solution.
Problem:
I am trying to: Translate SEO title and meta description for custom post types for each of my website's languages. I can see the string in the "translation strings" screen (and I add the translation here), but in the frontend site, the custom post type archive page only shows meta title and description in the default language.
Solution:
Version 14.0 of the Yoast SEO plugin came out with some major changes. Some changes affected the compatibility with WPML. However, everything's gonna be fixed in Yoast SEO Multilingual 1.2.0. Until then you can use the fix presented in the errata below.
I am trying to: Translate SEO title and meta description for custom post types for each of my website's languages. I can see the string in "translation strings" screen (and I add the translation here), but in the frontend site, the custom post type archive page only shows meta title and description in default language.
Link to a page where the issue can be seen: hidden link user: Pino / password: @Cocinas2019
I expected to see: The title and meta description in the custom post type archive page translated in english and français
I have tried to deactivate all plugins, and I have WPML and the other related plugins updated to the last version. I have uploaded some images, so you can see that the strings appears, but not in the frontend site.
I tried to use the credentials that you attached for the authorization, but they didn't work. Can you send them again, please?
Also, it would be great if you could give me access to the dashboard area too. This way I'll be able to have a closer look at the settings and see what might be causing this issue. Also, I'll be able to copy the same settings on my website to see if I can replicate the issue.
The next reply is set to be private so you can safely send me the credentials.
Can you tell me if you're making any change to this element, please?
Also, as I can see, you're using a custom theme. Can you install a default theme (like Twenty Twenty), and tell me if you still have this issue, please? I just want to make sure that that this is not an issue caused by the code you are using on the current theme.
You have posted the wrong url for the spanish content.
This is english content: hidden link
And this is spanish content: hidden link
As you can see, the title is common for both languages.
As I understood, the translation management for titles and meta tags has to be set at the string translation configuration of wpml, not in the Search Appearance section.
I looked at the way that the Yoast plugin is saving the title and description for the Cocinas post type archive. It seems that this is saved in wpseo_titles → title-ptarchive-cocinas and metadesc-ptarchive-cocinas, which are available for translation here: hidden link
In this case, is there any chance that you could tell me how did you create this custom post type (maybe share the code you used) so I can use it on my testing website and try to translate the title and description too.
Thank you for sharing this code with me. It seems that you're not the only one having this issue. My colleagues are investigating this issue right now and looking for a fix.
I will keep you posted about the progress we're making on this one. I will also try to come back with an early fix too, if possible.
and check the title and description now, please? I tried it on my website and it works very well. This fix will also be added to the next update of the Yoast WPML glue plugin.
It seems that some major changes were made lately on the Yoast plugin and that's why this part was broken.