Skip Navigation

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

Problem:
The client was facing issues with translating custom post types using Advanced Custom Fields (ACF) in their multilingual website.

Solution:
We recommended installing and activating the Advanced Custom Fields Multilingual (ACFML) plugin to add multilingual functionality to ACF. After installation, the client needed to adjust the field group's settings as outlined in the ACFML guide. Then, the client should open the product in the default language, make a minor edit, save the changes, and update the translation. This process ensures that all fields are correctly translated and displayed.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your specific case, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket.

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

Last updated by Waqas Bin Hasan 9 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
August 21, 2024 at 12:08 pm #16090240

pccS

Background of the issue:
I've added custom post type ("produkt") and some custom fields. I've checked them as translatable in WPML settings, I've translated the post using WPML advanced tab.

Symptoms:
On the site the content is missing.

Questions:
Why is the translated post content not visible on the site?
Are there additional settings required to display translated custom post types and fields?

August 21, 2024 at 1:02 pm #16090534

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

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

Hi,

Thank you for contacting the support.

Can you please explain how did you create the custom post type, as well as, how you're displaying the content on the frontend?

As per my understanding, you perhaps used ACF for post type and using Avada builder for the display of content. If that's correct, can you please also tell me which widgets/elements you're using in the builder for content display?

Besides this, I'll also request to check by the following steps:

1) Take a full backup of your site and database before proceeding.
2) Deactivate all plugins except WPML.
3) Switch to a standard theme like 2024.
4) Check for the issue if it still happens.

Please let me know and I'll try my best to help you further on the matter.

Regards.

August 21, 2024 at 2:10 pm #16090873

pccS

Hi,

Posts are prepared like this:

Plugin CPT UI -> added "product" type (its not ecommece rather e-catalogue so we are not using woocommerce)

Plugin ACF pro -> added some custom fields dedicated to "product" post type

Avada Layout Builder -> added layout dedicated to product post type, containing dynamic content based on acf fields content eg subtitle -> acf text field

Avada -> added some products

WPML-> set "product post type" as translatable, as well as acf fields

product Post -> add translation -> added translation which as you already know is not showing 🙂

In that case I cannot deactivate theme (Avada) and widgets (because of ACF) because won't work without them anyway.. :/

August 22, 2024 at 7:48 am #16093110

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

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

Thank you for the detailed information. And yes of course, in this case you'll need to use Avada theme.

Can you please confirm if you've also translated the Avada layout, created using the Avada Layout Builder? If yes, then I need to take a closer look at your site. So I request temporary access (WP-Admin and FTP), preferably to a test site where the problem has been replicated.

Your next answer will be private, to share this information safely.

Also provide detailed steps to reproduce the issue and links to pages in the admin and on the frontend.

IMPORTANT: Please take a complete backup of the site to avoid data loss. I may need to activate/deactivate plugins also.

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

August 22, 2024 at 12:48 pm #16095025

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

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

Thank you for the details. I am working on this and 'll get back to you as soon as I find something or have a solution.

August 23, 2024 at 5:16 am #16097136

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

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

Thank you for your patience and cooperation.

I was able to fix the problem by using following steps:

- Installed and activated Advanced Custom Fields Multilingual (ACFML) plugin, because you're using ACF for custom fields and these fields are being used for product's content. So these needed to be translated. And ACFML is required to add multilingual functionality to the ACF.

- Then I set the fields group's settings accordingly, as mentioned in the ACFML guide, and saved the group.

- Then opened the "Flo Kitchen Cleaner" product for editing in default language. Made a little change to the content of a field (i.e. added a couple of dots), saved the product and updated the translation. In ATE, it was translated automatically and all fields were present there.

After completing the translation, now hidden link">English version of the product displays fine.

Screenshot 2024-08-23 101027.jpg
Screenshot 2024-08-23 100919.jpg
Screenshot 2024-08-23 100811.jpg