問題の概要
WPMLをSpectra Legacyと併用する場合、ポップアップを翻訳できません。どの言語でも、ポップアップはデフォルト言語で表示されます。ポップアップの投稿タイプを翻訳可能にしても、ポップアップの設定が取得されないため、翻訳されたポップアップは表示されません。
回避策
- WPML設定カスタム XML 設定に移動し、このコードを追加して保存します。
<wpml-config> <custom-types> <custom-type translate="1">spectra-popup</custom-type> </custom-types> <custom-fields> <custom-field action="copy">spectra-popup-type</custom-field> <custom-field action="copy">spectra-popup-enabled</custom-field> <custom-field action="copy">spectra-popup-repetition</custom-field> </custom-fields> </wpml-config> - ポップアップを翻訳します。