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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | - | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 |
- | - | - | - | - | - | - |
Supporter timezone: America/Lima (GMT-05:00)
Tagged: Documentation request
This topic contains 10 replies, has 3 voices.
Last updated by Andreas W. 8 months, 1 week ago.
Assisted by: Andreas W..
Author | Posts |
---|---|
May 3, 2024 at 12:43 pm #15591380 | |
eamonnT |
I have added a new acf field but how do I translated it ? |
May 3, 2024 at 10:05 pm #15592917 | |
Bobby Supporter
Languages: English (English ) Timezone: America/Los_Angeles (GMT-08:00) |
Hi there, While waiting for assistance, please review the following documentation on translating ACF fields using our glue plugin ACFML. https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/ Let me know your results, please |
May 4, 2024 at 4:51 am #15593081 | |
eamonnT |
still need help |
May 4, 2024 at 6:43 am #15593103 | |
eamonnT |
As far as I can see the field is set to translate... is it because the type is editor and nOT text? |
May 4, 2024 at 1:35 pm #15593501 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Can you please verify if the same field name is used inside the same or any other ACF Field Group? If so, please make sure that each field has a unique field name and test again. If this does not clarify the source of the issue, please let me know. |
May 5, 2024 at 10:03 am #15594145 | |
eamonnT |
the name looks to be unique Banner Top Notice |
May 7, 2024 at 2:50 pm #15602785 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
I would like to offer to have a closer look at the problem and request temporary access (wp-admin and FTP) to the website to investigate this issue further. You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it. IMPORTANT I may have to install a plugin called "All In One WP Migration" to make a copy of the website where I can investigate the issue further. However, I would also be very grateful if you could provide a staging site or copy of the website from your server yourself for this purpose. If you have any questions about creating such a staging site, you can consult your hosting provider. Just take note that WPML should be registered on this site again. If you are unable to provide such a copy of the site for testing, please let me know on this ticket. The private response form looks like this: Next time you reply, click "I still need assistance." Video: Please note that we are obliged to request this information individually on each ticket. We may not access any access information not specifically submitted on this ticket in the private response form. |
May 8, 2024 at 3:18 pm #15606944 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Which field group exactly are we talking about? I just took a quick look and the group "Banner" and "Page Banner" use the same field names. The field names need to be unique in each group and you can not use the same field names across different groups. If field names exist more than once, they will not appear on the WPML Translation Editor. Please adjust this and test again. If you use the WPML Translation Editor for translating the pages and posts, I suggest you use the field group setting "Same fields across language", which will auto-adjust all the necessary field settings. |
May 9, 2024 at 2:52 am #15608142 | |
eamonnT |
okay great now I understand. When I set this field name to a new name... I will need it translated for existing pages so it will be in Frencg etc for my FRench translated pages. How do I manage this so it is automatic or do I have to go into each page and refresh the translation? Is this what you mean by for auto I suggest you use the field group setting "Same fields across language", which will auto-adjust all the necessary field settings. |
May 9, 2024 at 3:03 am #15608147 | |
eamonnT |
Okay but on further checking the actual field that I am referring to that is not being translated does not have a duplicate name within acf fields, please see image for field I am having issue with. the acf group name is Search form Please check why this field is not being translated Thanks |
May 9, 2024 at 5:02 am #15608443 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Thank you for the provided details! The banner that is displayed on the website is coming from the Options Page "Search Form" and can only be translated manually by switching the language inside the top admin bar. These strings will not be available when translating a post or page and can not be translated automatically. It appears that our documentation is not clear enough on this purpose. You actually should set the field group to "Different fields across languages" for this purpose. I created a translation on the German Options Page for "Search Form" but sadly the translations are not rendered on Frontend. The issue seems to be related to how the fields are displayed on Frontend. According to this ACF documentation, you need to add a second parameter to the get_field() or the_field() function that uses the current $post_id as the second parameter: hidden link I suppose if you would follow this suggestion then WPML would know the actual ID of the translated post and should display the translation. It looks as if you are not using ACF's suggested workflow for displaying the strings in your theme. |
The topic ‘[Closed] acf field’ is closed to new replies.