WPML
状态
已解决
报告针对
WPML Multilingual CMS 4.5.2
解决于
WPML Multilingual CMS 4.5.9
相关插件/主题
Elementor

问题概述

目前无法为每种语言显示不同的 Elementor 模板。尽管您在后端看到选择了正确的模板,但您的站点在前端将始终显示最后保存的模板。

临时解决方法

在继续操作之前,请对您的站点进行完整备份

  1. 打开 /wp-content/plugins/elementor-pro/modules/theme-builder/classes/conditions-cache.php 文件。
  2. 找到第 109 行。
  3.  'posts_per_page' => -1, 'post_type' => $post_types, 'fields' => 'ids', 'meta_key' => '_elementor_conditions', 
    更新为
     'posts_per_page' => -1, 'post_type' => $post_types, 'fields' => 'ids', 'meta_key' => '_elementor_conditions', 'suppress_filters' => true //Here's the added line 
  4. 重新保存您的模板。

所有已知问题 →