Problem: In the Slovenian translation, when navigating to certain product categories, all product links and menu links lose the language name parameter (/?lang=sl). Deleting and recreating the translated product category did not resolve the issue. Solution: We recommend using WPML → Taxonomy Translation for translating taxonomies. If Yoast displays a warning about creating a redirect when editing a translated term, you can click “Undo” to remove the redirect. If a redirect has already been created, you can manually remove it from Yoast → Redirects.
Option 1: No changes to Yoast Premium (recommended) Add the following snippet to your functions.php file:
add_filter( 'Yoast\\WP\\SEO\\term_redirect_slug_change', function( $create_redirect ) {
// Only act in admin term edit contexts.
if ( ! is_admin() ) {
return $create_redirect;
}
$taxonomy = $_POST['taxonomy'] ?? '';
if ( ! $taxonomy || ! taxonomy_exists( $taxonomy ) ) {
return $create_redirect; // not editing a taxonomy term
}
if ( class_exists('Sitepress') ) {
$current_lang = apply_filters( 'wpml_current_language', null );
$default_lang = apply_filters( 'wpml_default_language', null );
if ( $current_lang !== $default_lang ) {
return true; // prevent Yoast redirect creation
}
}
return $create_redirect;
}, 10 );
This prevents Yoast from automatically creating redirects for taxonomy terms in secondary languages.
Option 2: Modify Yoast Premium code This involves editing core plugin files and is not recommended due to potential issues with future updates.
We plan to notify Yoast about this behavior. However, if this solution does not apply to your case or seems outdated, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket.
Problem: The client is unable to translate the answer texts to multiple-choice questions and section body texts in quizzes and courses using LearnPress with the WPML plugin. Despite following the available guides and documentation, these specific strings do not appear in the WPML String Translation interface.
Solution: We recommend translating the quizzes and courses directly in the WordPress editor after running them through the WPML translation process. This method allows for manual translation of all content, including the problematic strings that do not show up in the WPML String Translation interface. For detailed steps on using different translation editors, please refer to our documentation: Using Different Translation Editors for Different Pages.
Please note that this solution might be outdated or not applicable to your specific case. If these steps do not resolve your issue, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.