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.

This topic contains 1 reply, has 2 voices.

Last updated by Dražen 1 year, 2 months ago.

Assisted by: Dražen.

Author Posts
April 10, 2024 at 10:05 am #15503608

sophiaB-2

I am trying to: Use PHP created ACF fields with the relevant wpml_cf_preferences parameter to set which fields are set to translate.

Link to a page where the issue can be seen:
When trying to translate any page, we can use "What we do" as an example, only the page title shows up as available to translate.

I expected to see:
All fields that were set to

'wpml_cf_preferences' => 2

to show up for translation when I go to translate any page. I also expected to see the fields that were set to

'wpml_cf_preferences' => 2

to show up as set to "Translate" on the settings page under Custom Fields Translation.

Instead, I got:
Nothing. No fields are available to translate when trying to translate pages and on the settings page under Custom Fields Translation, all are set to "Don't translate"

MigrationMatters_–_block-media-text_php.png
Advanced_Translation_Editor_-_WPML.png
April 11, 2024 at 11:14 am #15508740

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

thanks for contacting us.

Since I see you are using some custom theme, can you please try to test it with the WP default theme? Add one part of your code for ACF there and see if those custom field translation settings are now being correctly set and shown. I suggest checking this on the staging site.

Do not forget to sync changes:

- hidden link

Let me know how it goes.

Regards,
Drazen

April 11, 2024 at 1:28 pm #15509537

sophiaB-2

I fixed this myself. Thanks.