WPML
状态
已解决
解决于
SEOPress 9.6
相关插件/主题
SEOPress
主题标签
Compatibility

问题概述

SEOPress 与 WPML 结合使用时,所选的主分类不会同步到已翻译的文章中,并且显示为空。这可能会影响依赖于主分类的面包屑导航或固定链接。

如果您有多个分类,主分类将用于 %category% 固定链接以及我们的面包屑导航中。

临时解决方法


  • 前往 WordPress 仪表盘中的 WPML > 设置 > 自定义 XML 配置

  • 添加以下 XML 配置并保存:
    <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>
            


  • 重新保存原始文章及其翻译。

所有已知问题 →