Problema: Stai cercando di nascondere alcuni campi di Elementor con regole condizionali, specificamente se un post è correlato a un tag, certi campi non devono essere mostrati. Questo funziona solo nella prima lingua, l'inglese, ma non nei post tradotti. Soluzione: Attualmente, non supportiamo questa funzionalità nativamente. Tuttavia, i nostri sviluppatori hanno creato una soluzione alternativa che puoi trovare qui. Abbiamo testato questa soluzione nella nostra Sandbox e funziona perfettamente senza la necessità di risalvare le traduzioni o altro.
Se questa soluzione non dovesse essere più rilevante, perché potrebbe essere superata o non adatta al tuo caso, ti consigliamo di aprire un nuovo ticket di supporto. Ti raccomandiamo inoltre di controllare i problemi noti correlati su questa pagina, verificare la versione della correzione permanente e confermare che hai installato le ultime versioni dei temi e dei plugin.
Problem: You are experiencing an issue where the src value in the img tag for product images on the translated version of your site is incorrect, showing a missing featured image. This problem occurs after images that were resized after they were translated. Solution: We found that the _wp_attachment_metadata was not updated for translations after the original image was replaced with a scaled one due to a script you ran. To address this, you can synchronize the metadata between the original and translated images by adding a script to your theme's functions.php file:
function wpml_sync_wp_attachment_metadata() {
// Get all original media attachments
global $wpdb;
$original_attachments = $wpdb->get_results("
SELECT element_id FROM {$wpdb->prefix}icl_translations
WHERE source_language_code IS NULL
AND element_type = 'post_attachment'
");
foreach ($original_attachments as $original_attachment) {
$original_id = $original_attachment->element_id;
// Get metadata from original
$metadata = get_post_meta($original_id, '_wp_attachment_metadata', true);
// Get translated posts for this attachment
$translations = $wpdb->get_results($wpdb->prepare("
SELECT element_id FROM {$wpdb->prefix}icl_translations
WHERE trid = (SELECT trid FROM {$wpdb->prefix}icl_translations WHERE element_id = %d AND element_type = 'post_attachment')
AND source_language_code IS NOT NULL
", $original_id));
foreach ($translations as $translation) {
$translated_id = $translation->element_id;
// Update translated post meta with the same metadata
update_post_meta($translated_id, '_wp_attachment_metadata', $metadata);
}
}
}
add_action('init', 'wpml_sync_wp_attachment_metadata');
After adding the script, reload your dashboard page and then remove the script. Ensure to back up your database before proceeding.
Please note that this code has not been thoroughly tested and is more of an idea for fixing the problem. If it doesn't work as expected, you or someone with appropriate expertise must make any necessary adjustments. The custom coding falls outside the support provided here.
This solution might not be relevant if it's 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 issue persists, please open a new support ticket at WPML support forum.
Problem: If you're experiencing issues where automatic translation stops on all articles, but credits continue to drop and articles remain stuck on 'translation in progress', this might be due to a known issue with Elementor. Solution: We recommend checking the following errata page for a detailed explanation and workaround: Elementor PHP Fatal Error. Please ensure you create a backup of your site and database before applying any changes. Additionally, we are in contact with Elementor to work on a permanent fix, which may not be included in the immediate next update of Elementor but is expected in a subsequent one.
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. Should you need further assistance, please do not hesitate to open a new support ticket at WPML support forum.
Problème : Vous essayez de traduire une page, un article ou un contenu personnalisé dans l'une des 4 langues disponibles sur votre site utilisant Elementor Pro et WPML. Vous rencontrez un problème où l'icône de crayon se transforme en roue crantée, et l'article n'est pas disponible dans la langue ou n'est pas mis à jour. Un message d'erreur apparaît : 'Advanced Translation Editor Error Logs - Job Download : Call to a member function get_main_id() on null' dans le fichier /wp-content/plugins/elementor-pro/core/utils.php:81. Solution : Nous vous recommandons de consulter et d'appliquer la solution proposée sur la page d'errata de WPML pour ce problème spécifique à Elementor Pro. Vous pouvez trouver les détails ici : https://wpml.org/errata/elementor-php-fatal-error-call-to-a-member-function-get_main_id-on-null/
Si cette solution ne résout pas votre problème ou semble obsolète, nous vous conseillons de vérifier les problèmes connus sur https://wpml.org/known-issues/, de vérifier la version du correctif permanent, et de confirmer que vous avez installé les dernières versions des thèmes et plugins. Si le problème persiste, n'hésitez pas à ouvrir un nouveau ticket de support sur notre forum de support.
Problem: The client needed a way to customize the ALT text for flag images in the WPML language switcher to improve accessibility and comply with WCAG 1.1.1, without modifying WPML core files. Solution: We advised the client that currently, the best approach to achieve the desired ALT text customization is to follow the workaround provided in our errata, which involves modifying the 'class-wpml-ls-model-build.php' file.
Unfortunately, there are no suitable hooks or filters available for this customization, and implementing custom code would be complex. We also informed the client that there is no ETA for a permanent fix but have taken their feedback as a feature request. We recommended trying the workaround after ensuring a site backup.
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 this does not resolve your issue, please open a new support ticket at WPML support forum.
Problem: The client was experiencing an issue where after translating a layout page to 100% using WPML, the gear icon remained, indicating that the translation was not marked as completed. Solution: Initially, we suggested making a minor edit in the default language and updating it, followed by clearing the WPML cache and synchronizing jobs and translators via WPML->Support->Troubleshooting. When this did not resolve the issue, we requested temporary access to further investigate. Upon reviewing the ATE error logs, we identified a conflict with the Woodmart theme specifically related to translating product layouts. We directed the client to contact Woodmart support with the specific error for resolution. Meanwhile, the Woodmart support team suggested adding the following code to the
After implementing this code and clearing the cache, the issue was resolved.
Please note that this solution might be outdated or not applicable to your specific case. If the problem persists, 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 needed, do not hesitate to open a new support ticket at WPML support forum.
Problema: Il widget 'loop grid' di Elementor non funziona in modalità 'Current Query' quando WPML è attivo. Disabilitare WPML risolve il problema. Soluzione: Abbiamo identificato che lo slug dei prodotti in italiano era tradotto solo con 'p'. A causa delle lingue disabilitate, cambiare solo la traduzione non è sufficiente. È stato necessario lanciare una query sul database per eliminarle da lì. Dopo aver eseguito la query, cambia la traduzione dello slug. Questo dovrebbe risolvere il problema.
Se la soluzione proposta non risolve il problema o sembra non essere più rilevante, ti consigliamo di aprire un nuovo ticket di supporto. Ti raccomandiamo inoltre di controllare i problemi noti correlati, verificare la versione della correzione permanente e confermare di avere installato le ultime versioni dei temi e dei plugin. Per ulteriore assistenza, visita il forum di supporto WPML.
Problema: Dopo l'aggiornamento delle traduzioni tramite l'editor avanzato di WPML e l'utilizzo dei crediti di traduzione, il sito segnala errore 404 su link esistenti e la homepage assume un link scorretto. Il problema si risolve temporaneamente cancellando la cache e aggiornando i permalink. Soluzione: Se stai riscontrando questo problema, ti consigliamo di disabilitare Redis Object Cache per verificare se il problema persiste. Questo passaggio può aiutare a determinare se Redis Object Cache sta interferendo con le traduzioni o i permalink del tuo sito.
Se identifichi il problema con Redis Object Cache per favore apri un ticket e ricevere ulteriori indicazioni.
Se la soluzione proposta non risolve il problema o se sembra non essere più attuale, ti invitiamo a visitare la pagina dei problemi noti per verificare se esiste una soluzione permanente per la tua versione di WPML. Assicurati inoltre di avere installato le ultime versioni dei temi e dei plugin. Se il problema persiste, ti consigliamo di aprire un nuovo ticket di supporto sul forum di supporto WPML.
Problem: Vous avez des Post types et vous souhaitez traduire les slugs des archives. Malgré la modification des slugs dans les paramètres > Traduction des types de publication, les traductions ne sont pas prises en compte. Solution:
Assurez-vous que les Post types créés par ACF soient traduisibles, et non les Post types d'ACF eux-mêmes. Pour cela: - Dans ACF > Groupes de champs, éliminez la traduction EN et DE de "Applications directes". - Dans WPML > Paramètres > Traduction des types de publication, passez "Post Types (acf-post-type)" à "Non traduisible" et cliquez sur "Enregistrer". - Ensuite, dans WPML > Gestion de traduction, vous pouvez traduire les "ACF Post Types Labels". Pour plus d'informations, consultez ce lien.
Si cette solution ne résout pas votre problème ou semble dépassée, nous vous recommandons de vérifier les problèmes connus, de vérifier la version du correctif permanent et de confirmer que vous avez installé les dernières versions des thèmes et plugins. Si le problème persiste, n'hésitez pas à ouvrir un nouveau ticket de support sur notre forum de support.
Problem: Some WP Bakery blocks are not translating correctly on a multilingual site. The blocks display French content on an English page, and the content does not appear in the translation editor. Solution: First, ensure that the WP Bakery builder is enabled for posts. Then, add the following XML configuration to the WPML-> Settings-> Custom XML tab:
After adding this XML, update the page and its translation. This should make the module content appear in the translation editor. Next, register the untranslated modules and update the post in the default language along with its translation. For further guidance on identifying attributes and tags in shortcodes, please refer to this video and check this guide.
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 https://wpml.org/forums/.
Problem: Si estás utilizando Elementor junto con el traductor clásico de WPML y un plugin de caché como WP Super Cache o LiteSpeed Cache, y notas que las traducciones no se actualizan en el front-end después de guardarlas en el editor clásico de WPML, aunque sí se actualizan al editar con Elementor y guardar desde allí. Solution: Primero, te recomendamos aplicar la solución descrita en la página de errata de WPML para problemas de contenido obsoleto en páginas traducidas de Elementor: https://wpml.org/errata/elementor-translated-pages-show-stale-content-after-being-updated/. Además, puedes desactivar la caché de Elementor siguiendo esta ruta: /wp-admin/admin.php?page=elementor-settings#tab-experiments. Como alternativa, añade el siguiente código al archivo functions.php de tu tema activo:
Si la solución propuesta no resuelve tu problema o parece no ser relevante debido a actualizaciones o diferencias en tu caso, te recomendamos abrir un nuevo ticket de soporte. También es altamente recomendable que revises los problemas conocidos en https://wpml.org/known-issues/, verifiques la versión de la solución permanente y confirmes que tienes instaladas las últimas versiones de los temas y plugins. Si necesitas más ayuda, no dudes en contactarnos en el foro de soporte de WPML: https://wpml.org/es/forums/forum/ayuda-en-espanol/.