Problem: You are using the WCML plugin to display different prices based on the site language and currency. Each language has a designated currency without a currency switcher. You've encountered an issue where some currencies do not have a price set, and WCML defaults to using the price of the default currency. You are looking for a way to not display prices for currencies that don't have a price entered and are wondering if the
wcml_product_price_by_currency
filter can be modified to achieve this.
Solution: We recommend managing custom prices directly on the original product in the default language. Prices for each currency should be manually set on the original product. If a custom price is set, WCML will use this price instead of the default currency price. If no custom price is set, consider setting the translated product visibility to "Private" or "Draft" to hide it, or ensure all original products have custom prices for each currency. Note that using the
wcml_product_price_by_currency
filter requires a custom price to be set for the active currency on the original product. Setting prices to "0" might not prevent purchases unless stock is also set to "0", which could complicate stock synchronization later.
Please be aware that custom code solutions and issues beyond WPML’s built-in functionality are not covered by our support. If you require a custom solution, consider hiring an independent contractor.
If this solution does not apply to your case, or if it 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 open a new support ticket at WPML support forum.
Problem: You need to configure the WPML language switcher to redirect users between two separate WordPress domains (glginsights.com and glginc.cn) based on the selected language, while maintaining consistent permalinks. Solution: We recommend implementing a custom redirect using the
wpml_language_has_switched
hook. This hook activates after WPML switches the language context, allowing you to redirect users to the corresponding page on the other domain. Here is a basic example of how you can set this up:
Ensure that both domains use matching permalinks and slugs, and adjust the language codes to match your WPML configuration. This solution is custom and may require further adjustments based on your specific setup.
If this solution does not apply to your case, or if it 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 open a new support ticket at WPML support forum.
Problem: You have hundreds of WooCommerce products in Spanish that you want to update the translations into French in bulk, for specific words. The manual translation using CTE does not support glossary. You are looking for a way to customize the 'Duplicate' method or insert a new method into the dropdown list for processing and publishing translations with specific text string replacements.
Solution: Unfortunately, customizing the 'Duplicate' method or inserting a new method directly via WPML is not possible out of the box. However, you can use the WPML's Coding API to achieve your goal. First, identify the Post IDs of the translations using the
wpml_get_element_translations
hook available at this link. Then, you can run a custom script to modify the content of these posts accordingly. It's important to note that support for custom coding is beyond the scope of our forum, and we strongly recommend testing any custom solutions on a development or staging site first.
If this solution does not apply to your case, or if it seems outdated, please check the related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. We highly recommend opening a new support ticket if further assistance is needed. You can do so at WPML support forum.
Problem: Sie haben auf Ihrer Startseite ein Element mit Icons, und beim Klicken auf ein Icon sollte der entsprechende Text auf der englischen Seite erscheinen, tut dies jedoch nicht. Solution: Wir haben festgestellt, dass die Funktionalität über benutzerdefinierten Code in Elementor implementiert wurde. Sie finden diesen Code unter Elementor > Custom Code > Rectangle Switch. Da wir keinen Support für benutzerdefinierten Code bieten, empfehlen wir Ihnen, insbesondere den hardcodierten Teil zu überprüfen, wie z. B.
, da diese Werte in den Übersetzungen wahrscheinlich unterschiedlich sind.
Falls diese Lösung veraltet ist oder nicht auf Ihr Problem zutrifft, empfehlen wir Ihnen, ein neues Support-Ticket zu eröffnen. Wir empfehlen auch, die Seite mit bekannten Problemen (https://wpml.org/known-issues/) zu überprüfen, die Version der dauerhaften Lösung zu verifizieren und zu bestätigen, dass Sie die neuesten Versionen von Themes und Plugins installiert haben. Für weitere Unterstützung besuchen Sie bitte unser Support-Forum unter https://wpml.org/de/forums/forum/support-in-german/.
Problem: You are trying to translate your entire page from Portuguese to English, but the middle section of the page is not translating correctly and still shows Portuguese text. Solution: We have adjusted the custom XML configuration for your site to ensure that specific Gutenberg blocks are translated correctly. Here is the updated configuration you should apply:
If this solution does not resolve your issue or seems outdated, we recommend checking the 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 problem persists, please open a new support ticket.
Problem: The client added the Arabic language to their site using WPML and expected the content to display in RTL (right-to-left) format. However, the Arabic content was displaying in left-to-right format due to the use of a custom language code (ar-eg), which WPML did not recognize as RTL. Solution: We advised the client that the issue is controlled by the theme rather than WPML itself. For immediate testing, the client could switch to a theme that supports RTL or set Arabic as the WordPress language without WPML to confirm if the issue persists. To address the specific issue with the custom language code, we provided a code snippet to force RTL direction:
/**
* Force RTL direction for the custom Arabic‑Egypt (ar‑eg) language.
* Adjust the body/html tag direction when WPML's current language is ar-eg.
*/
add_filter( 'language_attributes', function ( $output ) {
// Get WPML's current language code
$current_lang = apply_filters( 'wpml_current_language', null );
// If we're on ar-eg and dir="rtl" is not already in the attributes, add it
if ( 'ar-eg' === $current_lang && false === stripos( $output, 'dir=' ) ) {
// Remove any existing dir attribute just in case, then append rtl
$output = preg_replace( '/\sdir=("|\")(rtl|ltr)\1/i', '', $output );
$output .= ' dir="rtl"';
}
return $output;
}, 20 );
We recommended that the client ensure they have a backup before implementing this snippet as it was not tested directly.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your 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 further assistance is needed, please open a new support ticket at WPML support forum.
The client is trying to organize translated pages in the CMS, separating English pages from other languages to make management easier. They also encountered an issue where random pages appeared in the English translation tab and needed to prevent Authors from publishing translations without Admin approval.
If these solutions do not resolve your issue or seem outdated, we 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 at WPML support forum.