This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing an issue where switching to the Spanish language on their website redirects them to the homepage instead of the translated Activity page. They have set up WPML and translated a custom post type (CPT) 'Cooking Classes' but encounter redirection and 'Invalid post type' errors. Solution: We recommend the following steps to troubleshoot and resolve the issue: Ensure that the custom post type 'Tours' is properly configured for translation in WPML. Go to ACF > POST TYPES > TOURS > EDIT, select WPML translation Editor, and click the + sign to translate it. If these steps do not resolve the issue or if you encounter further problems, it might be due to outdated information or a different configuration. 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 at WPML support forum for further assistance.
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 have a website built in DIVI THEME with DIVI Builder. I installed the following plugins: Yoast SEO, WPML core plugin, WPML Translation Management, WPML String Translation add-on, WPML SEO add-on. I have created 3 custom post types - Activities, Tours, Accommodations. I am trying to translate one Activity to see if it is working correctly. After I installed the plugins, I took the following steps to translate one specific Activity 'Cooking Classes': 1. SETUP WPML 2. WPML > Languages - set up site language, translation languages, menu switcher locations 3. WPML > Settings > Εnableδ translatable items 4. WPML → Translation Management and scrolled down to Select activity for translation. 5. translation Que (WPML > Translations) and translated the content.
Symptoms:
When I go to hidden link and switch to Spanish Language, it redirects me to the Homepage.
Questions:
Why does switching to the Spanish language redirect me to the homepage instead of the translated Activity page?
Is there a step I missed in the translation process for custom post types in WPML?
Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with first debugging steps or if I can perhaps help with the issue quickly.
Besides that,I checked your debug info and noticed that your website doesn't have the minimum memory required for WPML to work. WPML requires a memory limit of at least 128MB while 256MB is recommended. See https://wpml.org/home/minimum-requirements/ for detailed information. You can set WP Memory Limit in your wp-config.php file by adding the following code:
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hello,
If you revise the Spanish menu, it actually seems as if those contents were not yet published.
Please revise the status of your translated content.
It may happen that translations are saved as draft, if at the moment that you began translating the content the original content was still saved as draft.
Also, in case you use "Translate Everything Automatically" by default the translations are saved as a draft. You will need to complete a review at WPML > Translations first before they get published. This can be altered for new translations using the options on WPML > Settings > Automatic Translation.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hello,
I would like to offer to have a closer look at the problem and request temporary access (wp-admin and FTP) to the website to investigate this issue further.
You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it.
IMPORTANT
Please be sure to make a backup copy of the website and database before allowing us access.
If you can't see the wp-admin / FTP fields, your post and website credentials are set as PUBLIC. DO NOT publish the data unless you see the required wp-admin / FTP fields.
The private response form looks like this: hidden link
Next time you reply, click "I still need assistance."
Video: hidden link
Please note that we are obliged to request this information individually on each ticket. We may not access any access information not specifically submitted on this ticket in the private response form.
The spanish translation doesn't appear as it should.
The post type is assigned to a Divi Theme Builder Layout.
Why doesn't the Spanish version render the layout as well?:
Regarding your last two comments, take note that this is a different issue and we only handle one issue per ticket. I am splitting this new issue about Divi Templates into a new ticket and will follow up there with you shortly.
You will receive an e-mail notification once I reply to the new ticket.
So if I want to repeat what you did for the Activities ( ex. the TOURS ) , I go to ACF > POST TYPES > go to TOURS > EDIT > select WPML translation Editor and click the + sign to translate it?
Thanks for your feedback on Divi Layouts. I will wait for your new ticket.
Please have in mind that I want the Spanish translation on every post to be assigned to the same template assigned to the English one...and I also want to change the button links on the Spanish version.