WPML
상태
해결됨
보고된 제품
WPML Multilingual CMS 3.3.6
해결된 버전
3.3.7

문제 개요

동일한 제목을 가진 글은 고유주소에 -2 또는 -3 접미사를 추가하는 대신 동일한 URL을 생성합니다. 그 결과, 동일한 제목을 가진 두 번째 및 세 번째 글은 동일한 슬러그로 생성되며 프런트엔드에서 접근할 수 없습니다.

예를 들어, 제목이 모두 Hello World,인 글을 세 개 생성하면 모두 hello-world라는 슬러그를 갖게 됩니다.

임시 해결 방법

다음 경로로 이동하여: /wp-content/plugins/sitepress-multilingual-cms/inc/post-translation/wpml-admin-post-actions.class.php
111번째 줄을 아래 내용에서:

	protected function get_save_post_lang( $post_id, $sitepress ) {

다음과 같이 변경하세요:
	public function get_save_post_lang( $post_id, $sitepress ) {

그런 다음 아래 경로로 이동하여: /wp-content/plugins/sitepress-multilingual-cms/inc/url-handling/wpml-slug-filter.class.php
68번째 줄 다음에 아래 내용을 추가하세요:
$post_language       = $post_language
	? $post_language : $this->sitepress->post_translations()->get_save_post_lang( $post_id, $this->sitepress );

알려진 모든 문제 →