Home›Support›English Support›[Resolved] Categories of a translated post switch to main language categories when the article is scheduled
[Resolved] Categories of a translated post switch to main language categories when the article is scheduled
This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing issues where a post translated from French to English and scheduled for later publication reverts to the original French category upon publication, we have identified a solution. Solution: We recommend modifying a specific file within the WPML plugin. Please follow these steps: 1. Navigate to
public function translateMedias() {<br /> if (!wp_doing_cron()) {<br /> foreach ( $this->pbIntegration->get_save_post_queue() as $post ) {<br /> this->pbIntegration->translate_media( $post );<br /> }<br /> }<br />}
This adjustment ensures that media translations are not processed during scheduled tasks, which helps maintain the correct category associations for scheduled posts.
Please note that this solution might become outdated or may not apply to your specific situation. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket.
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.
my site main language is french and english is a secondary language.
When I translate a french post in english, I associate categories (for example "In the news" that is a translated category of french category "à la une").
Then, I scheduled the publication to a later date.
And after this date, when the post is published, it is no more associated to the initial category (for example "In the news") but it's associated to the category in french (for example "à la une").
Could you please helpme fix this problem?
The taxonomy is yet OK as you could see on the screenshot.
I've tested the minimal setup (without any plugins activated) and it appears that the issue only happens when I use an Enfold child theme (even a blank one like this one you can download here: hidden link).
It's OK when I use the Enfold Theme, but not with an Enfold child theme...
I’ve added the enfold child theme to the sandbox site, and I can’t seem to reproduce the issue. It looks like it might be related to some options in the theme. Could you please import and export the options available on the site to the sandbox? That way, we can test further and figure out what’s causing the problem. Thanks a bunch!
Or To get a better understanding, I suggest sharing a backup of your wp-content folder and your database. You can zip the files and send them to me via Google Drive. With these, I can set up a local copy of your site and take a closer look at the issue.
Our 2nd tier checked the issue and To get a better understanding, they suggest sharing a backup of your wp-content folder and your database. You can zip the files and send them to me via Google Drive. With these, they can set up a local copy of your site and take a closer look at the issue.