コンテンツへスキップ サイドバーへスキップ

Waiting for author

Topic Tags: Compatibility

Overview of the issue

When using SEOPress with WPML, the selected primary category does not sync on translated posts and appears empty. This may affect breadcrumbs or permalinks relying on the primary category.

The primary category is used in the %category% permalink and in our breadcrumbs if you have multiple categories.

Workaround

  • Go to WPML > Settings > Custom XML Configuration in your WordPress dashboard.
  • Add the following XML configuration and save:
    <wpml-config>
      <custom-fields>
        <custom-field action="copy" type="taxonomy-ids" sub-type="category">_seopress_robots_primary_cat</custom-field>
        <custom-field action="copy">_seopress_redirections_logged_status</custom-field>
      </custom-fields>
    </wpml-config>
            
  • Resave the original post and its translation.

返信を投稿

他の人に対してトピックに沿った礼儀正しい対応をお願いします。この投稿に関連しない問題についてサポートが必要な場合は、サポートフォーラムを使用してチャットを開始するか、チケットを送信してください。

次のタグが使用できます:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>