Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 -

Supporter timezone: Europe/Paris (GMT+02:00)

This topic contains 4 replies, has 2 voices.

Last updated by Yvette 1 year, 11 months ago.

Assisted by: Yvette.

Author Posts
May 23, 2022 at 6:41 am

Ángel

slug translation doesn't work for fallback

May 23, 2022 at 7:05 am
May 23, 2022 at 12:28 pm #11280391

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Paris (GMT+02:00)

Hello

You had not translated the correct string for the rewrite slug.

I added it to String Tranlsation and it now works. Note you need to update the Portuguese translation still.

Thanks

String Translation ‹ Kannabia Seed Company — WordPress.png
May 25, 2022 at 7:17 am #11300087

Ángel

Hi

Now the English posts that are not converted are displayed, but not correctly, they still have the problem that the slug is not converted correctly.

The slug in Spanish should be "eventos" but "events" continues to appear, so when clicking on the link it gives a 404 error.

Here I leave the example, hidden link

The third event listed, called 15 YEARS CULTIVA & EXPANSION TO CROATIA, is not translated. Its link is hidden link. The correct link is hidden link, which is the one that works.

Thanks

May 25, 2022 at 10:31 am #11302813

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Paris (GMT+02:00)

Hello

I've been doing some testing on your site and I can see that if I display the event from the administrative Events listing (backend) in each language...and language switching from within the actual event....the permalinks are correct.

Video:

It seems the issue is the "Events" archive page itself. When I attempt to look at events from this page, that is where the issue is.

I see that you have a custom "Eventos" template written. The problem would be here.

Are you the author of this template page? Normally, we cannot provide custom coding support and I may have to refer you to a WPML contractor for more assistance. I can try to help you but when I reach my coding limitation, you will have to find contract support.

May 25, 2022 at 10:42 am #11303019

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Paris (GMT+02:00)

Hello again.

I invite you to see this sandbox example:
hidden link

Here you can see that the CPT is configured to have an archive and it is using the standard WordPress archive template.

The slugs are translating as expected from the archive page. Do you agree?
hidden link

The topic ‘[Closed] slug translation doesn't work for fallback’ is closed to new replies.