I am trying to: add new posts with the correct language of categories.
Link to a page where the issue can be seen: N/A - issue occurs in the post editor.
I expected to see: Categories displayed in the language of the post I'm editing.
Instead, I got: Categories in the secondary language.
Steps to recreate the bug:
—Create blank WordPress install (tested in 6.1.1)
—Install WPML, String Translation and Media Translation (latest versions as of Jan 17, 2023)
—Setup WPML with a secondary language of French, with "A different domain per language" setting and setup subdomain for the secondary language.
—Enable "Auto sign-in and sign-out users from all domains"
—Update permalinks
—Important: sign-in from the login page of the secondary language. eg. fr.domain.com/wp-login.php
—Add a new post. The default language (English) is used for the post, but the Categories and Tags for French are shown (see screenshot).
Can you please let me know if the category is translated completely? In some cases, we recommend login from the default/main domain to edit and create the translation with WPML translation editor to avoid CORS blocking issue.
I'm trying to reproduce the issue on my end and I will update you here once I have any information.
Yes the categories are translated completely—in my test case, the English category is "Test Category EN" and the French is "Test Category FR". Screenshot attached.
The issue arose because a client of ours has multiple editors and translators logging into the site, some of whom use the main domain login page, while others use the secondary. We have informed them that they should try to use the main domain, but because of the large number of editors it is likely some will be in the habit of using the secondary domain.
OK great, thanks for the update. I believe we're running on nginx servers in production so we'll have to figure out something other than htaccess rules for the redirects, but that is something I'll look into.
The auto sign-in feature is only for front-end, not for the backend. WP dashboard should be run on the default domain. Can you please let me know how you can login to the WP dashboard from the second domain? By default, if you try to login to the dashboard with the second domain fr.domain.com/wp-login.php, it will redirect to the default domain domain.com/wp-login.php
You can also check with the testing site that I provide in the private reply below, let me know if you can replicate the issue there.
Look forward to your reply.
Thanks
The topic ‘[Closed] Post Editor Displays Incorrect Language Categories’ is closed to new replies.