WPML
상태
해결됨
보고된 제품
WPML Multilingual CMS 3.5.3.1
해결된 버전
WPML Multilingual CMS 3.6.0

문제 개요

설정 -> 읽기 페이지에서 정적 홈페이지를 설정한 경우, 해당 페이지에 잘못된 템플릿이 사용되는 것을 확인할 수 있습니다.

이 현상은 홈페이지가 다른(기본 언어가 아닌) 언어로 업데이트될 때 발생합니다.

이 문제는 특정 메타 필드를 올바르게 읽지 못하고 대신 그 값이 공백으로 설정되기 때문에 발생합니다.

임시 해결 방법

이 문제는 다음 릴리스에서 수정됩니다. 그때까지는 다음 임시 해결 방법을 사용할 수 있습니다.

wp-content/plugins/sitepress-multiligual-cms/inc/post-translation 폴더로 이동하여 wpml-post-synchronization.class.php 파일을 편집하세요.

다음 줄을 찾으세요:

$page_template = $this->sync_page_template && get_post_type( $post_id ) === 'page' ? get_page_template_slug( $post_id ) : null;

위(기존) 코드를 다음으로 교체하세요:

$page_template = $this->sync_page_template && get_post_type( $post_id ) === 'page' ? get_post_meta( $post_id, '_wp_page_template', true ) : null;

알려진 모든 문제 →