문제 개요
WPML과 함께 Parallax를 사용할 때 기본적으로 섹션과 팀원은 번역 불가능하며, 섹션을 나열하는 페이지의 번역된 복사본에는 섹션이 표시되지 않습니다.
임시 해결 방법
- WPML설정사용자 정의 XML 구성으로 이동하여 다음 XML을 추가하고 저장하세요:
XML
<wpml-config> <custom-types> <custom-type translate="1">section</custom-type> <custom-type translate="1">team</custom-type> </custom-types> <taxonomies> <taxonomy translate="1">section-category</taxonomy> <taxonomy translate="1">team-category</taxonomy> </taxonomies> <custom-fields> <custom-field action="copy-once">section_query_category</custom-field> <custom-field action="copy-once">section_order</custom-field> <custom-field action="copy-once">section_orderby</custom-field> <custom-field action="copy-once">section_meta_key</custom-field> <custom-field action="copy-once">section_posts_per_page</custom-field> <custom-field action="copy-once">section_hide_title</custom-field> <custom-field action="copy-once">section_hide_subtitle</custom-field> <custom-field action="copy-once">section_feature_size_page</custom-field> <custom-field action="copy-once">section_parallax_effect</custom-field> <custom-field action="copy-once">section_type</custom-field> <custom-field action="copy-once">section_width</custom-field> <custom-field action="translate">team_title</custom-field> </custom-fields> </wpml-config>
- 섹션, 섹션 카테고리 및 이를 나열하는 페이지를 번역하세요.