Skip Navigation

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

Problem:
I have a category page called Portfolio in English language. I've translated the category to the slug portfolio-pt, but if I go tho the Menu and choose in Portuguese and then click in portfolio (PT) it goes back to portfolio in English.
Solution:
I checked that this issue was being caused due to this Yoast setting being disabled:

Yoast -> Settings -> Categories -> Additional settings -> Show the categories prefix in the slug

To fix it I went to WPML -> Settings -> Taxonomies Translation -> Categories (category) -> Set different slugs in different languages for Categories and removed the Portuguese translation in there.

Relevant Documentation:

I followed this errata for that: https://wpml.org/errata/yoast-seo-stripping-category-base-not-working-when-the-taxonomy-slug-has-been-translated/

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 3 replies, has 2 voices.

Last updated by Mateus Getulio 1 year, 6 months ago.

Assisted by: Mateus Getulio.

Author Posts
July 24, 2023 at 7:52 pm #14092417

butterandflyB

But, I'm having another problem that I wish you could have a look. I have a category page called Portfolio in English language. I've translated the category to the slug portfolio-pt, but if I go tho the Menu and choose in Portuguese and then click in portfolio (PT) it goes back to portfolio in English.

Any idea why?
Many thanks

July 24, 2023 at 10:08 pm #14092667

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

I checked that this issue was being caused due to this Yoast setting being disabled:

Yoast -> Settings -> Categories -> Additional settings -> Show the categories prefix in the slug

To fix it I went to WPML -> Settings -> Taxonomies Translation -> Categories (category) -> Set different slugs in different languages for Categories and removed the Portuguese translation in there.

I followed this errata for that: https://wpml.org/errata/yoast-seo-stripping-category-base-not-working-when-the-taxonomy-slug-has-been-translated/

Once I did it, the Portuguese version of that category page started to work again.

Can you please test it again and let me know if it's working properly on your end now?

Best regards,

Mateus

July 25, 2023 at 9:10 am #14094573

butterandflyB

Hi Mateus,
Thank you so much. I can see that the issue is resolved.
I really appreciate.

July 25, 2023 at 6:00 pm #14098583

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

I'm glad that we are able to solve this =)

I hope we are good to close here.

Feel free to contact us any time if you need assistance with our products.

Kind regards