Problem: The client was unable to display translated regions, countries, and ports on their website using the Elementor Custom HTML widget. Solution: We recommended using the wpml_object_id filter hook to fetch translated post IDs in the current language. Detailed guidance on this hook is available at WPML documentation. For Ajax-loaded data, we advised passing the current language to the callback function. Instructions for handling Ajax requests can be found at WPML documentation. Additionally, we provided custom code examples to localize scripts and modify Ajax requests to ensure the correct language is used:
// Get the current WPML language
$current_language = apply_filters( 'wpml_current_language', null );
// Localize the script with the current language
wp_localize_script( 'common-js', 'wpmlData', array(
'currentLanguage' => $current_language,
));
lang: wpmlData.currentLanguage
These changes were implemented on the client's staging site. If further customization is needed, we recommended contacting a certified WPML contractor from this list.
Please note that the solution provided might be outdated or not applicable to your specific case. 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 issue persists, please open a new support ticket.
Problem: You are working on a Russian translation for a website using WPML and have encountered an issue where all string translations for Divi footer widgets do not work, except for one. You have tried translating strings that you previously added from "Translate texts in admin screens" but most translations are not effective. Solution: We recommend using the method of "Creating Widgets in Each Language" to ensure all your footer widget strings are translated effectively. This approach involves setting up separate widgets for each language. You can find detailed instructions on how to implement this method on our documentation page: Translating Widgets.
If this solution does not resolve your issue or seems outdated, 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 further assistance is needed, please do not hesitate to open a new support ticket at WPML support forum.
Problem: After updating WordPress and WPML, texts including standard paragraph blocks are missing on the translation page for patterns. Solution: We identified that the Arabic pattern was broken after the update. We have fixed the issue. Please verify if the texts are now appearing correctly on your translation page.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, we recommend opening a new support ticket. We also 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. For further assistance, please visit our support forum at WPML Support Forum.
Problem: You have installed a plugin to translate your German website into English, but the product category is missing on the English translation page. Solution: We recommend checking the English language portfolios to see if the custom field "id_field" exists. This issue might be due to the "Order By" custom field condition not working correctly on the English language page. If the field is missing, adding it should resolve the problem.
Please note that this solution might be outdated or not applicable to your specific case. 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 issue persists, please open a new support ticket.
Problem: The client is experiencing issues with a 3rd party plugin widget not translating correctly. Specifically, the titles on product filters and the 'Search Products...' placeholder are not appearing in the correct language. Additionally, the client mentioned that posts set to publish when the original is published are being published prematurely. Solution: For the translation issues with the widget, we recommend duplicating the category filter and assigning the appropriate language to each duplicate. This method should help ensure that the widget displays correctly in each language. For the issue of posts being published prematurely, ensure that the 'Publish the translated post when the original is also published' option is correctly configured to match your scheduling needs.
If these solutions do not resolve your issues or if they seem outdated, 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. Should further assistance be needed, please do not hesitate to open a new support ticket at WPML support forum.