This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing issues with creating English courses using Learndash on an Italian website. The permalinks for the courses are incorrect and not translated, leading to 404 errors and too many redirects. Solution: 1. Ensure that Learndash is translated using the WordPress Editor. For more details, visit https://wpml.org/plugin/learndash-lms/. 2. Duplicate the course with WPML and set it as independent. Adjust the permalink settings in WordPress and translate the slug in WPML > Settings > Post Type Translation. 3. Take note, that this issue was related to custom code in the child theme's functions.php file and we provided a workaround for the issue. 5. Verify that the custom post type slug is translated in WPML > Settings > Post Type Translation. For more information, visit https://wpml.org/documentation/getting-started-guide/translating-page-slugs/.
If these steps do not resolve your issue, or if the solution seems outdated or irrelevant to your specific case, we recommend opening a new support ticket. Additionally, please check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. For further assistance, visit our 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.
Background of the issue:
I'm trying to create English courses with Learndash on my website, which is in Italian. I can create the courses, but I'm having trouble with the course pages.
Symptoms:
The permalink created for the courses is completely wrong and not translated. And i can't see the course pages.
Questions:
How can I create Learndash courses in English with the correct permalinks?
Sorry but the article was not helpful, i can't literally see the course page in english version.
There is probably something wrong with the backend, i think that you have to look inside or we need a chat to explain well.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hi,
I would like to request temporary access (wp-admin and FTP) to the site to investigate the issue further.
The required fields are below the comment section when you log in to leave the next reply. The information you provide is private, meaning only you and I can see and access it.
IMPORTANT
Please be sure to back up the site and database before granting us access.
If you can't see the "wp-admin / FTP" fields, your post and site login details will be set to "PUBLIC". DO NOT publish the data unless you see the required wp-admin / FTP fields.
I may need to install a plugin called "All In One WP Migration" here to create a copy of the site that I can use to investigate the issue further.
However, I would also be very grateful if you could provide a staging site or copy of the website from your server for this purpose.
If you have any questions about creating such a staging site, you can consult your hosting provider. Please note that WPML must also be registered on this staging site at https://wpml.org/de/account/websites/.
If you are not able to provide such a copy of the website for testing, please let me know on this ticket.
The private reply form looks like this: hidden link
The next time you reply, click on "I still need assistance".
Video: hidden link
Please note that we are obliged to request this information individually on each ticket. We are not allowed to access any credentials that were not specifically submitted on this ticket in the private response form.
Sorry but i have no more space to create a staging site, can you do this by your own?
I have to tell you something before: if you click on "translate links destination" my website will broke. Basically you don't have to touch the permalinks. I can't do backups cause order and courses will disappear from users account.
So it is mandatory to use a staging site.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Please provide me with admin access to the live site using the private reply form.
I will try to take a package of the site while setting filters for media. This should keep the size small. I will use the plugin "All In One WP Migration" for this.
The private reply form looks like this: hidden link
The next time you reply, click on "I still need assistance".
I've followed it!! It doesn't work, that's the point! Now i deleted the translated courses, that's why you can't see them. Please try to translate "full cover tips course"(is a draft), publish it as private and let me know if you can see it.
Please i need to fix this quickly.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Thank you for your message!
I duplicated a course with WPML, then set it as independent.
It was now here: hidden link
To translate the CPT archive slug, first go to the WordPress Permalinks setting and make sure the permalink slug has the correct source language set. Those were set to English.
Then translate the slug at WPML > Settings > Post Type Translation.
What is unclear to me is, why the Courses use the Product Slug instead of the Courses Slug, but this seems not to be WPML related, as this issue is already occuring on the original events.
If you check the backend, actually we see the correct slug on the translated posts, but something is causing a slug rewrite to "products".
The translated course is now here: hidden link
If you need further assistance, please first make sure to update all plugins.
Now my website is completely broken.. All permalinks are changed. I need to force a backup, that's why i've asked to do this on a staging site. I can't understand what's wrong with your plugin.
This is not the first time I have used your support. The first time, I was chatting with one of your agents, I provided access to the site, they tried to make some modifications, and then abruptly closed the chat. Here’s what’s happening on the site: all the custom post type permalinks are being changed. So when users try to access a course, they get a 404 Not Found page. I contacted the hosting both times to fix the issue, and this is what they did to resolve it:
"The issue was related to internal links and pages being inaccessible, for example this one: hidden link. It was showing a "404 - Not found" error on the site as if the page does not exist, which is controlled by the site's Permalinks.