Resolved
Overview of the issue
When creating Elementor Templates with Elementor Pro, you have the option to set some Display Conditions as shown below:
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,
] );
I hope its working fine.
If it does not help, please open a ticket in our support forum as we will be able to help you better there:
https://wpml.org/forums/forum/english-support/
I’m having same issue. But I have added the code mentioned above but the problem still remains.
Hello Jason,
If it does not help, please open a ticket in our support forum as we will be able to help you better there:
https://wpml.org/forums/forum/english-support/
Regards,
Andrés