This thread is resolved. Here is a description of the problem and solution.
Problem:
After switching from Yoast to SEOPress, the primary category was not correctly assigned in languages other than English. The primary category field was missing in the Advanced Translation Editor (ATE) and was not translatable. Additionally, there was a looping issue in the WPML settings page, making it difficult to update settings.
Solution:
We identified the issue as a compatibility problem between WPML and SEOPress. To resolve this, we recommended inserting a custom XML configuration into WPML > Settings > Custom XML Configuration. This configuration ensures that the primary category is correctly used on translated posts, although it may still display as 'none' in the backend. The necessary XML is:
<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>
If this solution does not resolve your issue or seems outdated, please check the related known issues, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. If the problem persists, we highly recommend opening a new support ticket here.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.



