Skip Navigation

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

Problem:
The client is unable to translate content on their site beyond the page title, and the site was built using a page builder.

Solution:
We advised the client to identify the builder used to create the page. If the content was built with Advanced Custom Fields (ACF), we recommended following our guide on how to set up ACF for translation: https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/.

We emphasized that the client should not edit the database directly, as it may not work and could cause issues. Instead, we suggested making the correct settings for custom fields, ensuring that necessary fields are available for translation and that other custom fields are set to be copied. We also reminded the client to complete translations fully and to back up the database before making any changes.

Please note that the solution provided might be irrelevant due to being outdated or not applicable to your case. If the issue persists, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket with us.

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 Andrey 1 year ago.

Assisted by: Andrey.

Author Posts
April 18, 2024 at 9:03 pm #15541090

lukasP-29

I have a site that is created using a "builder" of some kind. Everything I can currently translate using WPML is the page title.

How should I proceed to translate/ create a copy of the content?

Screenshot 2024-04-18 at 22.58.19.png
Screenshot 2024-04-18 at 22.58.42.png
April 18, 2024 at 9:32 pm #15541135

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for contacting WPML support.

Could you please provide more details on what builder you used to create a page?

April 19, 2024 at 11:53 am #15543386

lukasP-29

Hello Andrey,
I'm aware the info I provided is very limited. This is a bespoke site created by an agency.

What I found out is that it's probably built on top of Advanced Custom Fields. I see a lot of plugins that seem related:
- Advanced Custom Fields PRO
- Advanced Custom Fields: Extended
- Advanced Custom Fields: Image Hotspots Field

I belive the only was to manage the translations is to copy the content - and I'm ok with that. It's sufficient for me if WPML handles urls, menus and redirects

There is a list of over 1400 custom field. I added all that start with builder to "translate". I'm now able to create a copy of the content somehow via WPML. I'm even able to translate it manually, by editing the page. However if i even accidentally >>open<< it in Translation Editor the page breaks.

In the screenshots I attached a screenshot for the database of custom fields that refer to a single page.

Maybe the solution is to allow editing of fields that follow the pattern below in the editor:

SELECT *
FROM `wp_postmeta`
WHERE `post_id` = 7502
AND `meta_key` NOT LIKE '\_%%'
AND `meta_key` REGEXP '_title$|_subtitle$|_suffix$|_price$|_text$'
ORDER BY `post_id` DESC;

Edit valus of meta_key that end with "_title", "_subtitle", "_suffix", "_prices", "_text" and don't start with "_".

Screenshot 2024-04-19 at 13.50.47.png
Screenshot 2024-04-19 at 13.46.39.png
Screenshot 2024-04-19 at 13.44.45.png
Screenshot 2024-04-19 at 10.56.22.png
April 22, 2024 at 10:28 am #15549545

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for your feedback.

If the content of the pages you're working on was built with Advanced Custom Fields, you need to use the following guide (and sub-guides if necessary) to make proper settings for future translations: https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/.

Editing something directly in the database is not recommended, as I cannot guarantee that it will work at all. I encourage you to read articles carefully, make the correct settings to custom fields, in order to add necessary fields to the translation and other custom fields to be copied, and afterward make sure translations are 100% complete.

Before proceeding with any updates, please remember to back up your database first.