Skip Navigation

Resolved

Overview of the issue

When creating Elementor Templates with Elementor Pro, you have the option to set some Display Conditions as shown below:

Elementor Pro Template and WPML

After recent updates, some Display Conditions, especially “Singular Posts” can cause the following issue:
An Elementor Template is created and a Display Condition is set
This Template loads correctly on the front-end

This Template is translated into a new Elementor Template and a Display Condition is set
Now, the translated Template loads correctly on the front-end, but the original Template stops loading completely

Workaround

We are working on a fix, but it might need the Elementor team’s help and in the meanwhile, we have a workaround. Before you try this workaround please make sure that you have a full backup of your site and database:

Please change the code in the following file:

elementor-pro/modules/theme-builder/classes/conditions-cache.php Lines 96-101:
From:
$query = new WP_Query( [
'posts_per_page' => -1,
'post_type' => Source_Local::CPT,
'fields' => 'ids',
'meta_key' => '_elementor_conditions',
] );

To:
$query = new WP_Query( [
'posts_per_page' => -1,
'post_type' => Source_Local::CPT,
'fields' => 'ids',
'meta_key' => '_elementor_conditions',
'suppress_filters' => true,
] );

4 Responses to “Elementor Pro Template Display Conditions Does Not Work With Multiple Languages”