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 thread is resolved. Here is a description of the problem and solution.

Problem: ACFML 1.4 translated options pages not appearing

Solution: Client was using "options" as the custom option name, which was registering the options page with specific post_id value, WPML works properly when the post_id value is not defined or defined to default.

Being so backup your DB and try the steps as mentioned here: https://wpml.org/forums/topic/acf-options-page-field-values-not-able-to-translate/#post-3804405

Relevant Documentation: https://www.advancedcustomfields.com/resources/options-page/ https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/

This topic contains 2 replies, has 2 voices.

Last updated by austinD-3 2 months, 2 weeks ago.

Assigned support staff: Shekhar Bhandari.

Author Posts
August 1, 2019 at 7:24 pm #4324915

austinD-3

From what I understand, as of ACFML v1.3, you now use the language switcher on the Options page instead of the string translations as in v1.2.

I have duplicated my default options page, switched languages, and edited the corresponding options page.

On EN (default) my data pulls through fine using get_field('field_name', 'options'), but on fr I'm getting nothing, despite the field being filled in the back end.

August 2, 2019 at 4:13 am #4326701

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Welcome to WPML support. I'd be assisting you further on this issue.

From what I understand, as of ACFML v1.3, you now use the language switcher on the Options page instead of the string translations as in v1.2.

Yes, it's correct.

You should probably use

get_field('field_name', 'option')

as explained here: hidden link

But since you are using "options" as the option name, I think you are registering the options page with specific post_id value, WPML works properly when the post_id value is not defined or defined to default.

Being so can you backup your DB and try the steps as mentioned here and let me know if this helps? https://wpml.org/forums/topic/acf-options-page-field-values-not-able-to-translate/#post-3804405

Look forward to your reply.

Thanks

August 2, 2019 at 1:25 pm #4330289

austinD-3

I believe my issue was that I had been manually assigning a post ID to the acf_add_options_page() args:

'post_id'    => 'my_theme_options' . getLangSuffix(),

This was somehow preventing the translations from pulling through.

Your reply definitely helped. Thanks!