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 – 15:00 9:00 – 15:00 9:00 – 15:00 9:00 – 15:00 9:00 – 15:00 - -
- - - - - - -

Supporter timezone: Asia/Yerevan (GMT+04:00)

This topic contains 8 replies, has 2 voices.

Last updated by Christopher Amirian 1 month, 2 weeks ago.

Assisted by: Christopher Amirian.

Author Posts
October 10, 2024 at 9:04 am #16273619

Rut Abrado

Antecedentes del problema:
I have created a Custom Post Type with ACF in the main language (Spanish), so the URL for the archive is: hidden link. I want to translate the slugs 'generadores-electricos' to Catalan and English. The translated URLs for the archive should be: hidden link and hidden link. The custom Post Type slug archive is registered as shown in this screenshot: hidden link.

Síntomas:
I can't manage to translate the slugs 'generadores-electricos' to Catalan and English.

Preguntas:
How can I translate the slugs for my Custom Post Type archive using WPML?

October 10, 2024 at 2:09 pm #16275727

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

Please go to WordPress Dashboard > WPML > Settings > Post Types Translation.

In the table, find the custom post type that you have created and click the link below the title.

You will be presented with an option to translate the slug.

After you make the change click the save button and refresh the permalinks:

- Go to "WordPress Dashboard > Settings > Permalinks".
- Click the "Save" button to flush the permalinks cache.

Read more about translating slugs here:
https://wpml.org/documentation/getting-started-guide/translating-page-slugs/

Thanks.

Screenshot 2024-10-10 at 6.08.46 PM.png
October 10, 2024 at 10:42 pm #16277082

Rut Abrado

Hi Christopher,

Thanks for your quick response. I did this, but the permalink you mentioned is for a single custom post (it's working fine, for example: hidden link). However, I want to translate the slug for the archive page: hidden link.

I tried making "Tipos de contenido (acf-post-type)" translatable, but it doesn't work, or I haven't figured out how to do it.

Captura de pantalla 2024-10-11 a les 0.35.37.png
October 13, 2024 at 8:24 am #16282744

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

You should not touch acf-post-type. Please revert back to the original state for that option.

It seems that you used the Elementor Template method to create the archive.

If so, please make sure that you do the slug translation for that.

Please change the option in WPML > Settings to force WPML to show the slug in Advanced Translation Editor.

For more information:

https://wpml.org/documentation/getting-started-guide/translating-page-slugs/

After that go to WordPress Dashboard > Templates and find the Elementor template you used to create the archive page.

Do a small change there and then click the pencil icon or circle icon to go to the advanced translation editor and you will see the slug there to translate.

I can help you out by checking the site myself. I'd appreciate it if you could give me the URL/User/Pass of your WordPress dashboard after you make sure that you have a backup of your website.
It is absolutely important that you give us a guarantee that you have a backup so if something happens you will have a point of restore.

Make sure you set the next reply as private.

Thanks.

October 13, 2024 at 9:43 pm #16283601

Rut Abrado

Alright, I haven't touched the acf-post-type, and I have a full backup of the website. I tried the solution you posted but couldn't get it to work, so I’ll give you access. However, I can't seem to find how to make this post private.

hidden link
user: wpml
pass: *************

October 14, 2024 at 8:39 am #16284502

Rut Abrado

Please go back to the first message. In this chat, I told you that the slug in the archive is not set in Elementor. I set a custom slug in ACF advanced options. Is that slug translatable? How can I translate it?

October 14, 2024 at 2:01 pm #16286447

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

There is a checkbox below the reply box that you can use to provide the login information.

From your explanation, I found out the option you have mentioned.

I created a WordPress installation, installed ACF Pro and ACF Multilingual and WPML.

Using ACF I created a post type called Movie. Then on the advanced options under the URL I have found the slug option for Archive and added movie-list.

Would you please enter the dashboard of that installation using the link below and confirm that I understood it correctly?

hidden link

By the way, I could not find a way to translate that option.

- I tested the custom field translation in WPML settings.
- String Translation.
- Admin text section of the String Translation.

I asked the second-tier support to see if they know if it is possible to translate that slug option.

Thanks.

October 14, 2024 at 3:28 pm #16287002

Rut Abrado

Yes, it's exactly like your WordPress installation; there is a custom archive URL called "movies-list":
hidden link

However, there is no way to translate "movies-list":
hidden link

Thanks

October 15, 2024 at 7:19 am #16288856

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

I have got an answer from the second-tier support. It is not possible to translate that slug.

Thanks.

The topic ‘[Closed] ACF Custom Post Type slug Translation’ is closed to new replies.