- 상태
- 개발자 대기 중
- 관련 플러그인/테마
- Soho Hotel
- 주제 태그
- Compatibility
문제 개요
Soho Hotel 테마를 사용하는 예약 페이지를 방문할 때, 숙소 및 게스트가 선택한 언어 대신 모든 언어로 표시됩니다.
임시 해결 방법
진행하기 전에 사이트의 전체 백업을 반드시 수행하세요.
- /wp-content/plugins/sohohotel-booking/includes/functions/backend/general/shb-core-functions.php 파일을 여세요.
- 10번째 줄을 찾으세요.
- 다음 코드를:
function shb_get_all_ids($post_type) { $ids = get_posts(array( 'fields' => 'ids', 'posts_per_page' => -1, 'post_type' => $post_type, 'orderby' => 'date', 'order' => 'ASC', )); return $ids; }다음과 같이 교체하세요:
function shb_get_all_ids($post_type) { $ids = get_posts(array( 'fields' => 'ids', 'posts_per_page' => -1, 'post_type' => $post_type, 'orderby' => 'date', 'order' => 'ASC', 'suppress_filters' => false, )); return $ids; }