- 상태
- 해결됨
- 관련 플러그인/테마
- Divi
문제 개요
페이지나 테마 빌더 레이아웃에서 Divi의 Shop 모듈을 사용할 때 WPML이 활성화되어 있으면 포함된 카테고리 옵션이 선택된 상태로 유지되지 않습니다.

임시 해결 방법
이 문제를 영구적으로 해결하기 위해 Divi 테마 개발자에게 문의하고 있습니다. 그동안 다음 임시 해결 방법을 사용할 수 있습니다.
먼저 WordPress 파일과 데이터베이스를 백업하세요.
- wp-content/themes/Divi/includes/builder/plugin-compat/sitepress-multilingual-cms.php로 이동하세요.
- 다음을 찾으세요.
$new_ids[] = apply_filters( 'wpml_object_id', $cat_id, 'product_cat' );
- 다음으로 바꾸세요.
$cat_id_translated = apply_filters('wpml_object_id', $cat_id, 'product_cat'); if ($cat_id_translated) { $new_ids[] = $cat_id_translated; } else { $new_ids[] = $cat_id; }