Skip Navigation

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

Problem:
You are using WPML with ACF Multilingual and have encountered an issue where the custom post type's permalink works as expected in the primary language (English), but the permalink structure is broken in a secondary language.
Solution:
This behavior might be expected due to the design of ACF's custom post types (CPT) functionality, which may not fully support multilingual permalink structures. We recommend setting up a staging environment to conduct further tests and identify a possible solution. If this issue persists, check if the post is published as a Draft.

100% of people find this useful.

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

Last updated by takahiroK-2 1 month ago.

Assisted by: Marcel.

Author Posts
October 25, 2024 at 5:23 am #16329018

takahiroK-2

Background of the issue:
We are using WPML + ACF Multilingual and we found a problem. ACF now supports the creation and management of custom post types and taxonomies. We would like to use its custom permalink function for some post types. Link to a page where the issue can be seen: hidden link

Symptoms:
The custom post in English (the primary language) can be referred to with the customized URL as we expected. However, the permalink structure for the custom post in a secondary language is completely broken. You can see the broken URL in the language switcher.

Questions:
Who is responsible for this issue, WP Engine or onTheGoSystems?

October 25, 2024 at 4:33 pm #16331705

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Hi,

I can't load the language switcher in any secondary language. Are the languages marked as private? So basically, do you mean the archive slug?

It's not possible to translate this one, please see: https://wpml.org/forums/topic/acf-custom-post-type-slug-translation/.

The reasons for this are mentioned here: https://wpml.org/documentation/support/translating-slugs-for-custom-post-type-archives/. In that case, we can't control the behaviour from ACF and how the CPT was created.

Best Regards,
Marcel

October 28, 2024 at 6:57 am #16335950

takahiroK-2

The articles you cited are regarding the custom archive slug.
But the issue I reported is regarding the custom permalink of single custom posts.
Besides, when we use another plugin, Custom Post Type UI, it works perfect.

Sorry that the translated post was private.
The permalink of the Chinese custom post looks like:
hidden link

We hope this issue can be fixed.
Thank you for your support any way.

October 28, 2024 at 8:45 am #16336375

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Hi,

This is likely expected behavior when using ACF’s CPT functionality, as some components aren’t supported due to how ACF CPTs are designed. Do you have a staging environment where we could run some tests?

Best regards,
Marcel

October 28, 2024 at 8:58 am #16336505

takahiroK-2

Oops! It was our mistake. The Chinese post is not even a private post but is a draft.
Sorry for making an inappropriate report.