This thread is resolved. Here is a description of the problem and solution.
Problem:
If you're experiencing an issue where the Elementor loop is missing on your multilingual site, particularly when comparing different language versions, we have identified a solution.
Solution:
1) Ensure that the translation for the 'Bestseller Loop Home new' template is published in all secondary languages. It might currently be in 'pending for review' mode.
2) Add the following code to the
functions.php
file of your theme, at the bottom:
/** * @link wpmlsupp-11444 */ add_filter( 'elementor/query/query_args', function( $query_args ) { $translated_query_args = $query_args; if (isset($query_args['tax_query'])) { foreach ($query_args['tax_query'] as $key => $query) { if (isset($query['field']) && in_array($query['field'], ['term_id', 'term_taxonomy_id'], true)) { $query['terms'] = array_map(function( $id ) use ($query){ return apply_filters( 'wpml_object_id', $id, $query['taxonomy'], TRUE ); }, (array) $query['terms']); $translated_query_args['tax_query'][$key] = $query; } } } return $translated_query_args; }, 100 );
3) Save the changes.
4) Update the page and its translations.
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.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic is split from https://wpml.org/forums/topic/not-everything-got-translated/
This topic contains 4 replies, has 0 voices.
Last updated by 3 weeks, 3 days ago.
Assisted by: Bigul.