- 상태
- 해결됨
- 해결된 버전
- 4.5.0
- 관련 플러그인/테마
- Divi
문제 개요
미디어 링크(예: PDF 파일)를 가리키는 동적 콘텐츠를 Divi 모듈에 추가하고 해당 모듈을 번역하면, 번역된 링크가 번역된 미디어를 가리키지 않고 404 오류가 발생합니다.
임시 해결 방법
현재 이 문제에 대한 영구적인 해결 방법을 마련하고 있습니다. 그동안 다음 단계를 따라 웹사이트에서 문제를 해결할 수 있습니다:
- 웹사이트 파일과 데이터베이스를 백업하세요.
- wp-content/themes/Divi/includes/builder/feature/dynamic-content.php로 이동하세요.
- 다음을 찾으세요:
$dynamic_content = json_decode( $json, true );
- 해당 줄 뒤에 다음을 추가하세요:
if ($dynamic_content != NULL && $dynamic_content['settings']['post_id'] != NULL) { $post_type = get_post_type( $dynamic_content["settings"]["post_id"] ); $dynamic_content["settings"]["post_id"] = apply_filters( 'wpml_object_id', $dynamic_content['settings']['post_id'], $post_type, true ); }