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
/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/Shutdown/Hooks.php
.
2. Replace the existing
translateMedias()
function with the following code:
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.
This topic contains 23 replies, has 0 voices.
Last updated by 3 months ago.
Assisted by: Shekhar Bhandari.