This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing a 404 error when trying to view the Welsh version of a custom post on your WordPress site, despite other pages working fine, the issue might be with the translation status of the post. Solution: We recommend the following steps to resolve this issue: 1. Edit the original English version of the post. 2. Make a slight change to the title, update the post, and then revert the change. This action is necessary to trigger a new translation job. 3. Open the translation editor and ensure that the translation is completed. After these steps, the Welsh version of the post should display correctly.
Please note that this solution might be outdated or not applicable to your specific case. 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 problem 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.
Background of the issue:
I am trying to view the Welsh version of a custom post on my WordPress site. The English version of the post can be seen here: hidden link. I have already cleared the cache and reset permalinks.
Symptoms:
When I click the Cymraeg link in the top right to view the Welsh version of the post, I get a 404 error. Other pages on the site are working fine.
Questions:
Why am I getting a 404 error when trying to view the Welsh version of a custom post?
What steps can I take to resolve the 404 error for the Welsh custom post?
I believe the translated page may still be in Draft mode.
Please follow these steps:
1. Go to Pages → All Pages.
2. Switch to the secondary language.
3. Edit the translated page using the WordPress editor.
4. Click the Publish button.
I need to request temporary access (wp-admin and FTP) to your site—preferably to a test site where the problem has been replicated if possible—in order to be of better help. When you log in to leave your next reply, you will find the needed fields below the comment area. The information you will enter is private, meaning only you and I can see and access it.
You can provide access to the live site, but make sure that you do a full backup first. If you prefer the staging site, then please set up a staging site. The following reply is private.
I noticed that the translation for your page was not completed, so I did the following steps:
1. Edited the original page.
2. Made a slight change to the title, updated the page, and then reverted the change (this needs to trigger a new translation job).
3. Opened the translation editor and completed the translation.
As a result, the page is now displaying correctly: hidden link