Problem: The client is attempting to convert posts into custom post types (CPT) based on their categories, ensuring that translations remain attached and old permalinks redirect to the new ones. They encountered issues where not all translations transferred during the migration using WPCLI. Solution: We recommend disabling the WPML plugin initially to ensure all posts are correctly converted to the new CPT without language complications. Once this is done, re-enable WPML and manually connect the posts as translations. This can be done either through the WPML interface or programmatically using the
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 for further assistance.
Problem: The client is trying to translate a site from English to Spanish using WordPress/WooCommerce. However, the translated page does not display as expected. Instead of the expected URL, an incorrect URL is shown, and the WordPress title and search bar issues are present. Solution: We recommended translating the header "template part" using Translation Management. This can be done by navigating to the Translation Management section in the WordPress admin panel. Here is a step-by-step guide: 1. Go to your WordPress admin area. 2. Navigate to Translation Management. 3. Translate the header "template part". After applying these changes, the issue with the URL and the display of the WordPress title should be resolved.
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.
Problem: The client has a website with four currencies and has set up WPML MultiCurrency based on the site's language. However, PayPal does not accept KM and DEN currencies, and the client wants PayPal to automatically convert amounts in these currencies to EUR. Despite configuration efforts, the client still encounters the error: 'CURRENCY_NOT_SUPPORTED Currency code is not currently supported.' Solution: We recommend using specific WCML hooks to filter and modify the currency code before it is sent to PayPal. Here are the steps: 1. Use the
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.
Problem: The client is trying to change the button label from 'Book now' to 'Add to Cart' and translate it to German ('Zum Warenkorb hinzufügen') using WooCommerce Bookings. Despite modifying the functions.php file and using WPML to scan and translate the string, the German translation does not appear on the products. Solution: We recommended the client to ensure that the custom code in functions.php is correctly using the WPML translation function. Here is the code snippet that should be used:
We also suggested reproducing the issue in a new WordPress installation to determine if the problem is specific to the client's site or a general issue. If the problem persists, it might be necessary to review the theme or plugin compatibility or other specific configurations on the original site.
If this solution does not resolve the 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 open a new support ticket at WPML support forum.
Problema: El cliente tiene una página con código PHP incrustado en un artículo a través de un iframe. Aunque ha definido correctamente el cambio de idioma y ha utilizado la función de traducción de cadenas de WPML, las traducciones solo funcionan en las páginas en español, mientras que en inglés no se reflejan correctamente. Solución: Primero, es importante entender que WPML solo puede traducir contenido y cadenas que están en la base de datos o en los archivos de plugins y temas. Los iframes, al ser código externo, no son accesibles por WPML para traducción directa. Si el contenido del iframe está desarrollado dentro de un tema o plugin de WordPress, el cliente debe: 1. Ir a WPML -> Localización de temas y plugins para escanear las cadenas. 2. Luego, traducir estas cadenas en WPML -> Traducción de Cadenas. Para descargar archivos .po, el cliente puede:
Acceder a WPML -> Localización de temas y plugins, y al lado de cada tema o plugin escaneado, seleccionar la opción para crear el archivo .po.
Ir a WPML -> Traducción de Cadenas y al final de la página, en el bloque de la derecha, escoger el dominio y descargar el archivo .po.
Si esta solución no resuelve el problema o si parece desactualizada, recomendamos abrir un nuevo ticket de soporte. También es aconsejable revisar los problemas conocidos, verificar la versión de la solución permanente y confirmar que se han instalado las últimas versiones de los temas y plugins. Para asistencia adicional, por favor visite nuestro foro de soporte.
Problème : Vous souhaitez rendre le texte d'un bouton dans un shortcode, défini dans le fichier functions.php, traduisible par WPML. Solution : Pour rendre le texte du bouton traduisible, vous devez envelopper le texte par défaut dans la fonction ,,
__()
. Voici comment vous pouvez modifier votre code :
// SHORTCODE REEL INSTAGRAM
function instagram_reel_popup_shortcode($atts) {
global $post;
// Define default attributes with translatable text
$atts = shortcode_atts(
array(
'button_text' => __('VOIR LA VIDÉO', 'your-text-domain'), // Make button text translatable
),
$atts,
'instagram_reel_popup'
);
Remplacez 'your-text-domain' par le domaine de texte de votre thème. Après avoir appliqué ce changement, sauvegardez votre site et allez dans WPML > Theme and Plugin Localization > Scannez le thème pour les nouvelles chaînes. Cela permettra de charger cette nouvelle chaîne sous String Translation.
Si cette solution ne résout pas votre problème ou semble dépassée, nous vous recommandons de consulter 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 nécessaire, n'hésitez pas à ouvrir un nouveau ticket de support.
Problem: The client is experiencing a timeout issue when trying to automatically duplicate job listings to the default language using custom code from the WPML forums. Despite disabling unnecessary plugins and checking the debug log, the timeout persists. Solution: We recommend using the bulk 'duplicate' feature in WPML for duplicating posts from a secondary language to the default language. This can be done by navigating to WPML->Translation Management, filtering for the posts created in the secondary language, and performing a batch duplication to the default language. If custom code is necessary, we suggest modifying the existing code to prevent duplicate function calls and ensure it targets the specific needs of the site. Here is an example modification:
Ensure that listings are set to 'translatable' in WPML->Settings. If further customization is needed, consider hiring a specialized developer with WPML experience from https://wpml.org/contractors/.
If this solution does not resolve your issue or 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. If the problem persists, we highly recommend opening a new support ticket at https://wpml.org/forums/forum/english-support/.