- 상태
- 개발자가 해결함
- 관련 플러그인/테마
- Themify Ultra
- 주제 태그
- Compatibility
문제 개요
Post Type Builder (PTB)와 함께 Themify Ultra 테마를 사용하고 상단 헤더의 검색 양식을 통해 검색을 수행할 때, 검색 결과에 동적으로 표시되는 사용자 정의 글 유형(CPT) 태그가 번역되어 표시되지 않습니다.
임시 해결 방법
진행하기 전에 사이트를 전체 백업하세요.
- …/wp-content/themes/themify-ultra/themify/includes/search-box-result.php 파일을 여세요.
- 3번째 줄을 찾으세요.
- 다음 코드를:
$title=$type_obj->labels->singular_name;
- 다음과 같이 바꾸세요:
$wpml_default_lang = apply_filters('wpml_default_language', NULL ); $wpml_cpt_name = $type_obj->name; $title= get_option('ptb_plugin_options')['cpt'][$wpml_cpt_name]['singular_label'][$wpml_default_lang];