Problem: The client is trying to trigger an action when a custom post type translation is saved using the WordPress hook. The problem is with the is_admin function.
. This hook works as expected for the original language but does not trigger when saving or updating a translated version of the post. Solution: We recommend modifying the condition to check if the request originated from the WPML Advanced Translation Editor (ATE) by using the following code:
This code snippet checks the HTTP_REFERER to determine if the request came from the WPML ATE and adjusts the execution environment accordingly.
If this solution does not resolve your issue or seems irrelevant due to being 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 further assistance is needed, please open a new support ticket at WPML support forum.
Problem: You are trying to link the German pages in your menu, footer, and mobile menu to their respective German translations, but they are linking to the English pages instead. Solution: We recommend ensuring that the menu items are added as pages and that these pages are translated. Then, go to WPML -> Menu Sync and run the sync. This should correctly add the translated pages to the translated menu.
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 the problem persists, please open a new support ticket at WPML support forum for further assistance.
Проблема: Клиент добавил новые функции на сайт с помощью PHP и зарегистрировал строки для перевода через WPML. Однако переводы строк не применились везде на сайте. Решение: 1. Убедитесь, что ваш код соответствует стандартам и корректно использует функции wpml_register_single_string и wpml_translate_single_string. Примеры использования доступны по ссылкам: wpml_register_single_string, wpml_translate_single_string. 2. Воспользуйтесь инструментами для устранения неполадок в WPML → Support → Troubleshooting, такими как очистка кэша и генерация новых MO файлов. 3. Проверьте, используете ли вы устаревшую функцию icl_register_string. Вместо неё следует использовать wpml_register_string и wpml_translate_string для регистрации и отображения переведенных строк соответственно. Подробная инструкция доступна здесь: String Package Translation.
Если данное решение не актуально или не помогло решить вашу проблему, рекомендуем открыть новый тикет в службе поддержки WPML. Также рекомендуем проверить известные проблемы на странице известных проблем, убедиться в актуальности версии исправления и подтвердить, что у вас установлены последние версии тем и плагинов.
Problem: You are trying to translate attribute labels on your product page from Greek to English using WPML, but the labels are not translating correctly. Solution: We have identified that the issue is caused by a custom code snippet titled "images-jqueries for shop sidebar and single product" from the Code Snippets plugin. Disabling this snippet should resolve the problem. If you are not comfortable handling this yourself, we recommend contacting one of our certified partners at http://wpml.org/documentation/support/wpml-contractors/.
If this solution does not apply to your case, or if it seems outdated, please check for 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. If the issue persists, we highly recommend opening a new support ticket for further assistance.
Problem: The client is developing a site using WooCommerce and WPML and has implemented custom code to display specific text after the product price and above the product title. The text is added to the String Translation section, but the client is facing issues with the translation. Solution: We recommend setting Translation Preferences for the custom fields used ('Custom Text Above Title' and 'Show "/month"'). Instead of translating via String Translation, it is more efficient to set these fields to 'Translate' for 'Custom Text Above Title' and 'Copy' for 'Show "/month"', and then use the WPML Translation Editor. This approach avoids the need to call hooks repeatedly and ensures smoother translation handling. For more details on how to set this up, please refer to our documentation on translating custom fields: Translating Custom Fields.
Please note that this solution might be irrelevant if it's 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 at WPML support forum.
Problem: You are experiencing issues with translated posts not being found due to complex permalink structures and custom rewrite rules in a multilingual WordPress setup using WPML. Solution: We recommend modifying the timing of your redirect rules. Instead of loading your redirects on 'init', try using the 'wpml-loaded' action. This ensures that WPML's language handling is fully loaded before your custom rewrite rules are applied, which helps in maintaining the correct language directories in URLs. For more details on this hook, please visit https://wpml.org/wpml-hook/wpml_loaded/.
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. Should you need further assistance, please do not hesitate to open a new support ticket at WPML support forum.
Problem: Sie benötigen zwei Versionen von PHP-Code: eine, die alle WPML-Sprachen Ihrer Website anzeigt und zur Startseite der jeweiligen Sprache verlinkt, und eine andere, die nur die Sprachen anzeigt, wenn die aktuellen Seiten, Artikel usw. in einer anderen Sprache verfügbar sind. Solution: Verwenden Sie die
wpml_active_languages
Hook, um die gewünschten Sprachoptionen abzufragen und anzuzeigen. Hier ist ein Beispielcode, der einen Dropdown-Sprachschalter im WordPress-Menü integriert:
Bitte beachten Sie, dass diese Lösung möglicherweise nicht mehr relevant ist, da sie veraltet sein könnte oder nicht auf Ihren Fall zutrifft. Wir empfehlen Ihnen, die bekannten Probleme zu überprüfen, die Version der dauerhaften Lösung zu bestätigen und sicherzustellen, dass Sie die neuesten Versionen von Themes und Plugins installiert haben. Wenn das Problem weiterhin besteht, eröffnen Sie bitte ein neues Support-Ticket.
Problem: The client is experiencing issues with the language switcher in the header and footer of their website not working, while it functions correctly in mobile or tablet formats. The system admin has implemented security measures that block access to anything related to wp-admin unless connected via the company's VPN. WPML uses admin-ajax.php for the language switcher, but not in all cases. Solution: We recommended checking the documentation on enabling a language cookie to support Ajax filtering: Activation d'un cookie de langue pour supporter le filtrage Ajax. The client should try toggling the Ajax filtering support and also uncheck the "Auto sign-in/sign-out feature" under WPML->Languages -> Language URL Format. Additionally, testing in a minimal environment by deactivating all plugins except WPML and switching to a default WordPress theme like Twenty Twenty-one could help identify any conflicting plugins. We also provided information on making exceptions for specific endpoints in the VPN/Firewall/Apache .htaccess settings to allow admin-ajax.php and admin-post.php, which are used internally by WordPress and several plugins, including WPML. Furthermore, we suggested using the
wpml_ls_enable_ajax_navigation
hook to disable Ajax navigation if the default language selector in the footer uses regular page refreshes instead of Ajax requests. This hook can be found here: wpml_ls_enable_ajax_navigation.
If these steps do not resolve the issue, or if the solution seems outdated or not applicable, we highly recommend opening a new support ticket. Please check 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. For further assistance, you can also visit our support forum: WPML Support Forum.
Problem: The client is experiencing an issue where the language switcher flags are misaligned horizontally on their website when the main language is selected. This misalignment occurs after adding the Language Switcher to the Site Editor navigation. Solution: We recommend applying the following CSS to address the flag alignment issue:
.wp-block-navigation .wpml-language-switcher-navigation-block ul.horizontal-list li {<br /> display: contents;<br />}
If this solution does not resolve the issue or seems irrelevant due to updates or different configurations, 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. Additionally, if the problem persists, please open a new support ticket at WPML support forum for further assistance.
Problem: The client is using WPML 4.6.12 and WooCommerce Multilingual & Multicurrency 5.3.6 on WordPress 6.6.1 and wants to create English versions of your 500 Italian WooCommerce products. They need these English pages to be editable independently in terms of text, images, and prices, while still linked as translations to the Italian versions. Solution: First, ensure you have a backup of your site. Temporarily deactivate the WooCommerce Multilingual plugin to edit the products in the secondary language. For translating products, we recommend using the WPML Advanced or Classic Editor as manual translation might not sync correctly, especially with variable products. For more details on using these editors, visit:
To manage media files in translations, refer to the WPML Media Translation guide at WPML Media Translation. If you need to unlink a translation from the original, this must be done manually as explained here: How to disconnect translations.
If this solution does not apply to your case, or if it seems outdated, please check 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 for further assistance at WPML support forum.