-
Notifications
You must be signed in to change notification settings - Fork 883
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom post type breadcrumbs are not translatable anymore using Yoast SEO and WPML #15582
Comments
I do not think this is up to us to fix, as this is not our functionality. Seems kind of the same as #15186 . @jono-alderson what do you think? |
I don't know enough about how this worked/works to have an opinion, sorry! |
I've been working on a breadcrumb issue with Qtranslate-xt and Yoast 14.0+. I have found the issue with breadcrumbs lies with this line of code: Upon saving a post, Yoast is saving a hard copy of the post's title in its indexables database. For some multi-lingual plugins (like Qtranslate-xt), this hard copy will be saved based on whatever language the admin UI was set to at the time. A solution would be to avoid using It fixes cases where If you do not want to change this part of the code, then I suggest you add in a filter to filter the breadcrumb title. Thanks! |
@pjrobertson Thanks for taking a look. Unfortunately I don't have issues with post titles but with custom post type and taxonomy displayed inside breadcrumbs. Everything works fine with regular posts and categories but not with custom post and taxonomies. If anyone from Yoast team could take a look if breadcrumb titles are called as untranslatable sting that would be great. |
Thanks for the confirmation dejann. In that case I've created a new issue specific to the bug I've found: #15627 |
@Djennez @jono-alderson all that is needed to solve this from the plugin's point of view is a filter to be able to alter the value that goes into the indexables on save. For the breadcrumbs issue, some kind of filter that for |
It's 2024 and I believe I am experiencing the same issue. Using Yoast with Polylang Pro, I have a custom post type where the breadcrumb for a single CPT post is {Post Type} > {Single Post Title}. Unfortunately, it appears that the "{Post Type}" is not translated, despite the post type being fully translated into the relevant language. |
Please give us a description of what happened.
Please note this was working fine in Yoast SEO version 12.x.x after updating to 14.x.x it doesn't work anymore.
After adding breadcrumbs to the theme and switching languages (in WPML) breadcrumbs don't display translated version for custom post type.
Please describe what you expected to happen and why.
Breadcrumb strings should be translatable as they did in version 12.x.x.
How can we reproduce this behavior?
Technical info
Used versions
The text was updated successfully, but these errors were encountered: