Skip to content Skip to sidebar

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.

Tagged: 

This topic contains 17 replies, has 1 voice.

Last updated by Kor 2 weeks, 5 days ago.

Assisted by: Kor.

Author Posts
January 19, 2026 at 3:08 pm #17743066

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience. Our 2nd Tier Support shared a workaround with me. You need to insert the custom XML configuration below into WPML > Settings > Custom XML Configuration. Once you've done that, the translated post will use the correct primary category. However, it will still show "none" in the backend, but this is just a cosmetic issue. You can check the breadcrumbs here hidden link as it will show the same primary category that you've chosen in English as shown in the attached screenshot.

<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>
Screenshot_298.png
January 21, 2026 at 3:28 pm #17751095
justinK-16

Hi Kor

I added the custom xml conf to the XML file in WPML settings.

I then tested a post by translating it in the ATE.
As you said, the translated Primary category does not appear in the Primary Category drop-down box (by SEOPress).

If I click on the French version of that post - all seems good, including the URL category path in the URL bar.

My only concern is that if in the Post Editor i click on the French language switcher, the permalink primary category does not switch from English to French. I'm not worried if it is just cosmetic - but can you confirm that this solution and permalink will not cause SEO issues.

I don't think so because if I click on the French URL, which still contains the English primary category path (in the WP Post Editor) it goes to the French version of the post. That is fine IF IT ONLY happens in/from the backend.

I attached 2 images of the post i am speaking about so you can see the permalink structure

But I definitely do not want duplicate content etc

Can you confirm this solution is correct and won't cause issues before we continue?

New threads created by Kor and linked to this one are listed below:

https://wpml.org/forums/topic/translated-post-still-showing-english-in-url-slug/

WPML ENG permalink example.png
WPML FR permalink example.png
January 21, 2026 at 4:49 pm #17751506

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. I can see the permalink is showing correctly in French here hidden link as shown in the attached screenshot. It looks good to me.

I've split the ticket here https://wpml.org/forums/topic/translated-post-still-showing-english-in-url-slug/ , just in case you want to follow up with the issue if there is any.

Screenshot_310.jpg