WPML
상태
미해결
관련 플러그인/테마
Rank Math SEO
주제 태그
Compatibility

문제 개요

WPML과 함께 Rank Math SEO를 사용할 때, Rank Math 리치 스니펫 숏코드 [rank_math_rich_snippet id="..."]의 콘텐츠는 번역되지 않습니다.

임시 해결 방법

1단계: 필드를 번역 가능하게 만들기

  1. “WPML > 설정 > 사용자 정의 XML 구성”으로 이동하세요.
  2. 다음 내용을 추가하고 “저장”을 클릭하세요.
    <wpml-config>
      <custom-fields>
        <custom-field action="translate">rank_math_schema_HowTo</custom-field>
        <custom-field action="translate">rank_math_schema_Article</custom-field>
        <custom-field action="translate">rank_math_schema_SoftwareApplication</custom-field>
      </custom-fields>
      <custom-fields-texts>
        <key name="rank_math_schema_HowTo">
          <key name="name" />
          <key name="description" />
        </key>
        <key name="rank_math_schema_SoftwareApplication">
          <key name="headline" />
          <key name="description" />
          <key name="review">
            <key name="negativeNotes">
              <key name="itemListElement">
                <key name="*">
                  <key name="name" />
                </key>
              </key>
            </key>
            <key name="positiveNotes">
              <key name="itemListElement">
                <key name="*">
                  <key name="name" />
                </key>
              </key>
            </key>
          </key>
        </key>
        <key name="rank_math_schema_Article">
          <key name="headline" />
          <key name="description" />
        </key>
      </custom-fields-texts>
    </wpml-config>
            
  3. 원본 페이지를 약간 수정한 후 저장하세요.
  4. 페이지를 번역하세요.

2단계: 숏코드 조정 또는 Rank Math 블록 사용

  • [rank_math_rich_snippet id="..."] 숏코드에는 고유 ID가 포함되어 있습니다.
  • 대신 (id 속성 없이) [rank_math_rich_snippet] 숏코드를 사용하세요.
  • 또는 Schema by RankMath 블록을 사용하세요.

알려진 모든 문제 →