WPML

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

This issue is fixed. Updating to the latest version solves it on your site, so you only need this workaround if you can’t update yet.

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,
] );

All known issues

Still Seeing This Issue?

If updating doesn’t fix it, ask a support question and we’ll look into it with you.