Skip Navigation

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

Problem:
The client is experiencing an issue where the name of a Custom Post Type (CPT) is not displaying correctly in breadcrumbs. Specifically, the translated version of the CPT is not showing up on the page.

Solution:
We have identified this as a known issue related to the Advanced Custom Fields plugin version 6.1, which introduced the ability to register custom post types and custom taxonomies. Currently, WPML does not support translating the labels associated with these features. We have confirmed the problem exists by reproducing it on a test site.

Unfortunately, there is no workaround available at this time. However, we are actively working on a solution to support these new features in the Advanced Custom Fields plugin. We have escalated this matter and are monitoring it closely. While there is no estimated time of arrival for the fix, we recommend bookmarking the errata page at https://wpml.org/errata/advanced-custom-fields-6-1-custom-post-types-and-custom-taxonomies-labels-not-translatable-yet/ to stay updated or subscribe to the comments on that page for notifications.

Once the issue is resolved, we will provide an update through this ticket.

If this solution does not seem relevant to your situation, please do not hesitate to open a new support ticket at our 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.

Tagged: 

This topic contains 17 replies, has 2 voices.

Last updated by Waqas Bin Hasan 1 year, 2 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
January 10, 2024 at 11:06 am

Zoltan

Custom Post Type translate in breadcrumbs.

I have a problem that the name of Custom Post Type is displayed incorrectly in breadcrumbs. If I open the CPT page, I don't see the translated version. For example: hidden link

On this page, instead of the word "Ajánlataink" it should be "Offers". As here: hidden link

January 10, 2024 at 11:50 am
January 10, 2024 at 11:51 am #15168519

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Reference to our recent chat, I've enabled your next reply as private to provide the access to the staging site.

IMPORTANT: If you don't see the section for providing access information, do not write in the message box or the information may appear as public.

See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security.

Regards.

January 10, 2024 at 11:59 am
January 10, 2024 at 12:55 pm #15168962

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the access to the staging site, I am working on it and 'll get back to you accordingly.

January 10, 2024 at 1:26 pm #15169153

Zoltan

Thank you!

January 11, 2024 at 7:52 am #15172429

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience, I am still working on this and 'll get back to you as soon as I find something or have a solution.

January 11, 2024 at 10:16 am #15173309

Zoltan

Thank You for helping me with this. I am glad that this will be resolved soon.

January 11, 2024 at 1:07 pm #15174603

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation.

I've tried several things, including registering the breadcrumb widget using WPML XML Config (https://wpml.org/documentation/support/language-configuration-files/how-to-register-page-builder-widgets-for-translation/#how-to-find-widget-s-registration-information). But this widget has not much to offer for the registration.

Unfortunately the plugin responsible for this widget (JetBlocks For Elementor) isn't on our compatibility list (https://wpml.org/plugin/?wpv_view_count=120064&wpv-plugin-functionality=0&wpv_post_search=JetBlocks&wpv-wpcf-recommendation-flag=&wpv_filter_submit=Search).

It seems to work fine when I used it in a Page (post type "page"), but looks like the problem is with custom post types or Elementor templates.

So I am trying to figure out the real reason. Please allow me sometime. I'll get back to you as soon as I am able to find a solution or reach a decision.

January 11, 2024 at 6:34 pm #15176364

Zoltan

Thanks.

January 12, 2024 at 12:20 pm #15178910

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation.

I've setup the same thing at my fresh sandbox site hidden link (you can use this link to login).

Here, for example, I used the breadcrumb widget:

- Hungarian: hidden link
- English: hidden link

And these look translated. But since in your site there's a post type part also available, which I am not able to reproduce here.

Can you please take a look and try reproducing in the above mentioned sandbox site? I think I am missing something from the setup.

January 12, 2024 at 1:22 pm #15179276

Zoltan

Hi,

Thank you! The missing part from the breadcrumbs is an URL rewrite from the Custom Post Type.

Screenshot 2024-01-12 at 14.22.08.png
January 15, 2024 at 7:30 am #15183171

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation.

I was able to reproduce the problem which turns out to be a known one, see this errata for details: https://wpml.org/errata/advanced-custom-fields-6-1-custom-post-types-and-custom-taxonomies-labels-not-translatable-yet/

Advanced Custom Fields 6.1 introduced the ability to register custom post types and custom taxonomies. However, WPML currently does not support translating the labels associated with them.

Unfortunately there's no workaround available so far but our team is working on a solution to support these new features in the Advanced Custom Fields plugin.

I've tried at hidden link (single post) and hidden link (archive) and as you can see that problem is still there due to the above mentioned.

I've also added this ticket to the escalated matter. There's no ETA so far, but you can bookmark the errata URL to keep an eye on it or can subscribe to the comments on that errata.

On the other hand, once this issue is resolved, I'll update you via this ticket.

January 15, 2024 at 8:07 am #15183395

Zoltan

Thank you for your help!

January 15, 2024 at 9:09 am #15183741

Zoltan

We created this shiraz.hu website based on another website of ours. The structure and custom post type are the same on the other website, but everything works fine there. Could you check what the settings are there?

** removed for security reasons **