問題の概要
WPMLでSOOZ – AI for SEOを使用すると、次の問題が発生する場合があります。投稿、固定ページ、またはカテゴリーを翻訳する際、そのSOOZ SEOフィールド(SEOタイトル、メタ説明、ソーシャルタイトルと説明)が翻訳に送信されません。翻訳にはSOOZ SEOデータが含まれません。
回避策
WPMLの設定に移動し、カスタム XML 設定に以下を追加します。
XML
<wpml-config>
<custom-fields>
<custom-field action="translate" encoding="json">ai4seo_active_metadata</custom-field>
</custom-fields>
<custom-fields-texts>
<key name="ai4seo_active_metadata">
<key name="focus-keyphrase"/>
<key name="meta-title"/>
<key name="meta-description"/>
<key name="keywords"/>
<key name="facebook-title"/>
<key name="facebook-description"/>
<key name="twitter-title"/>
<key name="twitter-description"/>
</key>
</custom-fields-texts>
</wpml-config>その後、投稿を再度翻訳するか、翻訳を更新します。これにより、各SOOZ SEOフィールドが独自のテキストとして翻訳に送信されます。
または、翻訳された投稿を開き、SOOZエディタでSEOフィールドを入力します。