Problem: The client is using ACF multilingual with WPML, and they encountered an issue where an image URL in a product category displays correctly in English, but when switching languages, the array containing the image URL becomes just a category ID in the translations. Solution: We recommended verifying the method used to call the field, suggesting the use of the approach detailed in the ACF documentation on image fields: https://www.advancedcustomfields.com/resources/image/#customized-display-array. Additionally, we provided a test site for the client to replicate the issue and further investigate the behavior of the image fields in a controlled environment. If the problem persists, we advised the client to adjust their code to check if the image field returns an ID and, if so, convert it to a URL using
wp_get_attachment_url
.
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 at WPML support forum for further assistance.
Problem: You are using WPML and ACF on your website and encountering an issue where
get_fields()
in your PHP file returns FALSE when trying to retrieve fields set across different languages. Solution: 1. If the issue occurs in the default language, disable WPML temporarily to check if the problem persists without it. 2. If the problem is in a secondary language, ensure that the pages are translated. Use the
wpml_object_id
hook to obtain the correct post ID for the translated post, which should allow you to retrieve the fields correctly. For more details on using this hook, visit https://wpml.org/wpml-hook/wpml_object_id/.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your specific case, we recommend opening a new support ticket. Additionally, 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. For further assistance, please contact us through our support forum.
Problem: The client is experiencing an issue with WPML Media Translation where the 'Save media translation' button remains inactive, and despite adding Name, Caption, and Alt text to a different file, the translated image does not appear, but the English image does. Solution: We recommend using the
function to ensure that the media ID is correctly translated, which should resolve the issue with the inactive button and the incorrect display of images. Here is a step-by-step guide: 1. Retrieve the original media ID and URL. 2. Use the
apply_filters
function to get the translated media ID. 3. If the original media ID does not match the translated media ID, update the media URL and ID to the translated ones. 4. Verify that the translated media appears correctly in place of the English image.
If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable 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 the problem persists, please open a new support ticket at WPML support forum for further assistance.
Problem: The client developed custom SiteOrigin widgets on a custom theme and configured the wpml-config.xml to translate widget content. However, the custom widget content is not translating, even though the page content is. Solution: We recommend updating your wpml-config.xml with the following XML code to make your widget compatible with WPML:
Please note that this is considered a custom code request and is outside of our support scope. We did our best to show how it is done for one widget but we will not be able to provide code for other widgets. You are welcome to use the resources provided in the reply to find the correct code.
If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at WPML 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: Sie möchten, dass die Sprachumschaltung auf mobilen Geräten (Handy/Ipad) linksbündig statt in der Mitte angezeigt wird. Solution: Um die Sprachumschaltung auf mobilen Geräten linksbündig anzuzeigen, fügen Sie bitte folgenden CSS-Code zu Ihrer Website hinzu:
@media screen and (max-width: 768px) {<br /> .wpml-ls-item {<br /> text-align: left !important;<br /> }<br />}
Falls Sie eine durchgehend linksbündige Ausrichtung wünschen, ersetzen Sie den obigen Code durch:
.wpml-ls-item {<br /> text-align: left !important;<br />}
Wenn Abstände auftreten, weil die Sprachumschalter-Elemente Unterpunkte Ihres Menüs sind, empfehlen wir, verschiedene CSS-Codes zu testen oder den Entwickler Ihres Themes zu kontaktieren. Sie können auch die verschiedenen Optionen des Sprachumschalters unter WPML > Sprachen ausprobieren.
Falls diese Lösung veraltet ist oder nicht auf Ihr Problem zutrifft, empfehlen wir, einen neuen Support-Ticket zu öffnen. Überprüfen Sie auch die bekannten Probleme und stellen Sie sicher, dass Sie die neuesten Versionen Ihrer Themes und Plugins installiert haben. Für weitere Unterstützung besuchen Sie bitte unser Support-Forum.
Problem: You are trying to add a menu and widgets manually to your website using WPML, but you encounter issues where the source text for the website name, menu, and widgets is not displayed in translation management. Additionally, when you add the menu and widgets manually, it results in duplicated menu and widgets on the original website, and they are not applied on the translated website. Solution: We recommend accessing the String Translation section and deleting any instances of the domain name related to the menu and widgets, such as:
admin_texts_ql_services_permalink
admin_texts_ql_services_permalink
After this, reload the page to allow WPML to rescan the frontend. The deleted strings should reappear. You should then verify both strings and use the "Change the language of selected strings" option to correct the language settings. Please check if the issue is resolved after performing these steps.
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 the problem persists, please do not hesitate to open a new support ticket at WPML support forum for further assistance.
Problem: After reactivating the WPML plugin, the client experienced an issue with the layout of the language switcher button. It was not aligned correctly with the phone number on the website header. Solution: We recommended adding custom CSS to adjust the layout. Here is the CSS code we provided:
We advised the client to add this code via WP > Appearance > Customize > Additional CSS and then clear the browser cache to see the changes.
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.