Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
When you try to access a Spanish URL for one of your custom post types, it redirects to the Spanish homepage, even though these post types are set to be translatable and have had translations run for them.
Solution:
We have identified that the issue with redirection to the homepage is not specifically related to WPML, as the same behavior occurs even when WPML is disabled. This suggests that the problem might be with the website's configuration or another plugin affecting the URLs. We recommend checking your website's settings and other plugins that might interfere with the URL structures. Additionally, ensure that your theme and all plugins are up to date.

If this solution does not resolve your issue or seems irrelevant due to updates or different configurations, 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 with us 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 5 replies, has 1 voice.

Last updated by Andreas W. 1 month, 2 weeks ago.

Assisted by: Andreas W..

Author Posts
May 19, 2026 at 4:06 pm #18046552

jasonM-28

When I try to go to a Spanish URL for one of my custom post types it redirects to the Spanish homepage. This is for all the CPT's, but not the pages. I have made sure they are translatable, and ran translations for them.

May 20, 2026 at 5:38 pm #18049356

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi there,

Please share with us the debug log which will help better understand what is triggering the Fatal Error.

Go in your wp-config.php file and look for define(‘WP_DEBUG’, false);. Change it to:
define('WP_DEBUG', true);

Edit your wp-config.php file and add these lines, just before it says 'stop editing here':

ini_set('log_errors',TRUE);
ini_set('error_reporting', E_ALL);
ini_set('error_log', dirname(__FILE__) . 'hidden link');

This will create an error_log.txt file in your site's root directory. Please send me its contents.

Also, if possible share with us a URL to one of the Spanish CPTs so we can test visiting it as well.

May 29, 2026 at 5:41 pm #18070326

jasonM-28

Hi There,
I actually got through this issue, but now I have another one. My pagination isnt working on the blog: hidden link

This uses Elementor for the archive.

Can you help me figure out why?

May 31, 2026 at 2:46 am #18071228

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

I'd be happy to take a closer look at this.

I'd like to request temporary access (wp-admin and FTP) to the website to investigate the issue further.

You'll find the necessary fields below the comment section if you log in to leave the next reply. The information you provide will be private, meaning only you and I will be able to see and access it.

IMPORTANT
Please be sure to create a backup of the website and database before granting us access.

If you don't see the "wp-admin / FTP" fields, your login credentials for the post and website will be set to "PUBLIC." Do NOT publish the information unless you see the required wp-admin / FTP fields.

I may need to install a plugin called "All In One WP Migration" to create a copy of the website on which I can investigate the problem more thoroughly.

I would also be very grateful if you could provide a staging site on your server for this purpose.

If you have any questions about creating such a staging site, please contact your hosting provider. Please ensure that WPML is also registered on this staging site at https://wpml.org/de/account/websites/.

If you are unable 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

When replying again, click "I still need assistance".

Video:
hidden link

Please note that we are required to request this information individually on each ticket. We are not permitted to access any login information that was not specifically provided in the private reply form for this ticket.

Best regards
Andreas

June 1, 2026 at 4:53 pm #18073854

jasonM-28

Hi Andreas,
Sure, I created a stage site for you to take a look:
hidden link
devaughnjames@razorrank.com
PFhx13vvrczaysr1$ngjCq@h

Please take a look and let me know if you need anything else to take a look.

June 3, 2026 at 7:06 am #18077408

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

The blog pagination is already not working on the original blog page:
hidden link

This is also the case if I disable WPML. This means that this issue is not caused by WPML.