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:

How to translate ACF fields on an options page?

Solution:

A. Translate the ACF field group as described here.

https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/#translating-acf-user-interface

B. Then use the instruction on the following link on how to translate the fields on the options page itself.

https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/#translate-option-pages

Please note that the fields on options page cannot be copied to the translation. You need to add the fields manually.

This topic contains 5 replies, has 2 voices.

Last updated by pedroF-15 2 months, 1 week ago.

Assigned support staff: Itamar.

Author Posts
August 7, 2019 at 2:40 pm

pedroF-15

I am trying to:
Show Option page content in front end

Link to a page where the issue can be seen:
hidden link

I expected to see:
Social Icons in the header for other languages also

Instead, I got:
its showing empty

August 7, 2019 at 5:53 pm #4357177

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi.

I've checked things on your site.
Can you please confirm that the issue is with the 'Social Links' fields group?
If so, then I think the repeater field is causing this issue. I'm not sure if they work correctly on the options page.
Is it ok for you to consider to switch to regular files for this options page?
If so can you please try to see if it solves this issue?
Please review our following documentation on how to translate fields for options pages.
https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/#translate-option-pages

Regards,
Itamar.

August 8, 2019 at 6:39 am #4359995

pedroF-15

Hi Itamar,

Thanks for the reply, Yes its all about Social links which is in Option Page. And yes I agree its repeaters. so it will be easy for me to access and manage the data.

Could you help me out As its common setup for all the page, I cant use it in single page/post. We cant predict how many social icons are going to be added in future and it will be easy if we manage using repeaters.

And it will be good if I get live chat support instead waiting for long time

August 8, 2019 at 10:59 am #4362079

pedroF-15

along with this, many of the other pages too not showing content. Like About Us Page etc.. If it is live chat support I can learn how to do that and it will not be problem for enabling this for other languages.

August 8, 2019 at 7:49 pm #4365651

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi and thanks for the extra details.

I'm sorry, but I have no option to convert a ticket into a live chat.

I've investigated the issue further and found out that some procedures were not followed correctly. Indeed, with fields on the options page, the procedure is a little bit different than from other cases.

A. You need to translate the field group. You did translate the Social Link field group into French, but it was not translated correctly. It needs to be translated without the Translation Editor and by first duplicating the field group to the other language. Please read about it our documentation here.
https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/#translating-acf-user-interface

B. As I've mentioned, there is also a different way to translate field on options pages. This way is described here.
https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/#translate-option-pages

Please note that the fields will not be copied to the other language of the options page. You would need to add the fields manually to the options page on the other language.

When I followed the correct procedure on your site, I managed to make the social links show on the French page here hidden link.
Please see the attached screenshot fr-social-links.png
Please proceed with the same method also for the Portuguese and Spanish languages.
If you need different links and icons, you can change them on the other languages options page.

Please let me know if you have any questions about this issue.

In our forum, we try to keep one issue per ticket. Continuing with one ticket per issue helps not only supporters to focus on one issue at once, but also enables other users to find solutions to their questions faster. For the other issues that you bring here may I kindly ask you please to open a new ticket or chat?

Thanks,
Itamar.

August 9, 2019 at 9:15 am #4368899

pedroF-15

My issue is resolved now. Thank you!