This thread is resolved. Here is a description of the problem and solution.
Problem:
The client was experiencing issues with translating slugs for a custom post type slug that comes from the plugin Citadela, that was showing up on WPML->Settings->Post Types Translation.
Solution:
Firstly, we recommended that any code changes should indeed be made in the child theme to prevent them from being overwritten during plugin updates. Regarding the slug translation issue, we provided the following steps:
1. Navigate to the file
/wp-content/plugins/citadela-directory/plugin/cpt/item/CitadelaItem.php
.
2. On line 31, locate the following code:
add_action('init', array(__CLASS__, 'citadelaOnInit'), 20, 0);
3. Change it to:
add_action('init', array(__CLASS__, 'citadelaOnInit'), 0);
4. After making the change, go to WPML -> Settings -> Custom post type translation -> Items (citadela-item), enter the translation for "lieu", and click "Save".
We also emphasized the importance of having a full backup of the website before making any updates or changes.
Please note that this solution might be irrelevant due to being outdated or not applicable to your case. If the issue persists, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If necessary, do not hesitate to open a new support ticket for further assistance at WPML support forum.
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 30 replies, has 2 voices.
Last updated by 9 months, 3 weeks ago.
Assisted by: Marsel Nikolli.