Problema: Stai cercando di risolvere un problema con l'ACF Repeater sul tuo sito WordPress, dove sono presenti campi traducibili e non traducibili insieme. Il problema si verifica quando crei, elimini o sposti le righe nella traduzione principale. Soluzione: Il problema che stai riscontrando è noto e documentato qui: problema noto. La soluzione consiste nell'aggiornare la pagina facendo solo lo spostamento. È importante aggiornare prima l'originale e poi le traduzioni, assumendo che tu stia utilizzando l'editor di WPML e non quello di WordPress. Nel tuo caso, la soluzione migliore è eseguire le due operazioni separatamente: prima aggiungi il nuovo elemento, poi lo sposti.
Se questa soluzione non risolve il tuo problema o se sembra non essere più rilevante, ti consigliamo di verificare i problemi noti, controllare la versione della correzione permanente e confermare che hai installato le ultime versioni dei temi e dei plugin. Se il problema persiste, ti invitiamo a aprire un nuovo ticket di supporto.
Problem: The client was experiencing an issue with the event calendar on the French version of their site, where the calendar would get stuck in a loop when performing actions such as queries, searches, or date changes. This was suspected to be due to WPML translating a URL for a script incorrectly, causing JavaScript errors in the console. Solution: We suggested that the issue might be related to a known problem with The Events Calendar and custom slug translations, similar to what is described in https://wpml.org/errata/the-events-calendar-incorrect-link-format-with-custom-slug-translations/. We recommended trying the workaround mentioned there. Additionally, upon further inspection, it was found that remnants of a previous translation app in the .htaccess file were causing the issue. Removing these remnants resolved the problem.
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 issues persist, please open a new support ticket.
The client was unable to translate the Single Product Layout using WPML as it would freeze and changes could not be saved. Other layouts were translating without issues.
To resolve this, we recommended adding the following code to the functions.php file of the client's child theme and clearing the caches:
add_action( 'woocommerce_before_template_part', function () {
global $product;
if ( wp_is_json_request() && ! $product ) {
$random_product = new WP_Query(
array(
'posts_per_page' => '1',
'post_type' => 'product',
)
);
while ( $random_product->have_posts() ) {
$random_product->the_post();
$product_id = get_the_ID();
}
wp_reset_postdata();
$product = wc_get_product( $product_id );
}
} );
We advised the client to try translating the Product Layout again to ensure it works as expected.
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 WPML Known Issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If issues persist, please open a new support ticket.