Tổng quan về sự cố
Khi sử dụng giao diện Shout với WPML, các mục đã dịch bị mất các trường và cài đặt bố cục của giao diện, văn bản ở thanh trên cùng và trang chân trang vẫn ở ngôn ngữ mặc định, văn bản của một số shortcode không được dịch và các văn bản của widget vCard không thể dịch được. Các liên kết đến bài viết trước và tiếp theo cũng có thể dẫn đến một bài viết ở ngôn ngữ khác.
Giải pháp tạm thời
- Truy cập WPMLCài đặt và mở tab Cấu hình XML tùy chỉnh.
- Thêm mã này và lưu:
XML
<wpml-config> <custom-fields> <custom-field action="translate">member_job</custom-field> <custom-field action="copy">_member_job</custom-field> <custom-field action="translate">member_byline</custom-field> <custom-field action="copy">_member_byline</custom-field> <custom-field action="translate">below_headings_text</custom-field> <custom-field action="copy">_below_headings_text</custom-field> <custom-field action="translate">testimonial_subheading</custom-field> <custom-field action="copy">_testimonial_subheading</custom-field> <custom-field action="translate">pirenko_rotating_text</custom-field> <custom-field action="copy">_pirenko_rotating_text</custom-field> <custom-field action="copy">featured_header</custom-field> <custom-field action="copy">_featured_header</custom-field> <custom-field action="copy">show_sidebar</custom-field> <custom-field action="copy">_show_sidebar</custom-field> <custom-field action="copy">sidebar_pos</custom-field> <custom-field action="copy">_sidebar_pos</custom-field> </custom-fields> <admin-texts> <key name="prk_shout_options"> <key name="bar_left_text_1"/> <key name="theme_divider"/> <key name="woo_subheading"/> <key name="bottom_page_id"/> </key> </admin-texts> <shortcodes> <shortcode> <tag>pirenko_contact_info</tag> <attributes> <attribute>company_name</attribute> <attribute>street_address</attribute> <attribute>locality</attribute> <attribute>postal_code</attribute> <attribute>tel</attribute> <attribute>fax</attribute> <attribute>hours</attribute> <attribute>email</attribute> </attributes> </shortcode> <shortcode> <tag>prk_sitemap</tag> <attributes> <attribute>txt_pages</attribute> <attribute>txt_blog_cats</attribute> <attribute>txt_posts</attribute> <attribute>txt_port_posts</attribute> </attributes> </shortcode> </shortcodes> </wpml-config>
- Truy cập WPMLDịch chuỗi. Dịch các văn bản trên thanh trên cùng và dịch
bottom_page_idthành ID của trang chân trang đã dịch. - Dịch lại các trang và mục của bạn để các bản dịch của chúng nhận được các trường này.
- Đối với widget vCard, hãy thêm một widget cho mỗi ngôn ngữ và thiết lập ngôn ngữ của nó trong phần cài đặt widget.
- Đối với các liên kết bài viết trước và tiếp theo, bạn có thể tắt tính năng điều hướng bài viết trong các tùy chọn giao diện cho đến khi nhà phát triển giao diện khắc phục sự cố này.