WPML
ステータス
解決済み

問題の概要

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

Elementor ProテンプレートとWPML

After recent updates, some Display Conditions, especially “Singular Posts” can cause the following issue:

Elementorテンプレートが作成され、表示条件が設定されます。

このテンプレートはフロントエンドで正しく読み込まれます。

このテンプレートが新規のElementorテンプレートに翻訳され、表示条件が設定されます。

すると、翻訳されたテンプレートはフロントエンドで正しく読み込まれますが、元のテンプレートは完全に読み込まれなくなります。

回避策

修正に向けて取り組んでいますが、Elementorチームの協力が必要になる可能性があります。それまでの間の回避策を用意しています。この回避策を試す前に、サイトとデータベースの完全なバックアップを取得していることを確認してください。

次のファイルのコードを変更してください。

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

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

すべての既知の問題 →