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 6 replies, has 2 voices.

Last updated by fernandoF-12 2 months ago.

Assigned support staff: Andreas W..

Author Posts
August 19, 2019 at 4:42 pm

fernandoF-12

Tell us what you are trying to do?
I need to show ACF repeater fields on all languages. just copying the value of each field is enough no need to translate the values.

Is there any documentation that you are following?
Yes, I've followed this:
https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/

Is there a similar example that we can see?
Sorry but no.

What is the link to your site?
For default language: hidden link
For EN language: hidden link

On my functions.php I'm using get_field('my_repeater_field') and registering it as javascript variable that I then use in fronted to populate dropdowns. It works great on default language but when I change the language the get_field() returns a number which is the same number of fields in the repeater.

Access do wp-admin can be provided on request.

August 19, 2019 at 5:05 pm
August 19, 2019 at 5:06 pm #4417581

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to a testing site where the issue is replicated.

You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.

IMPORTANT

Please make a backup of site files and database before providing us access.
If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:
hidden link

Kind regards
Andreas

August 19, 2019 at 5:31 pm
August 19, 2019 at 5:33 pm #4418009

fernandoF-12

The page title where issue occurs is "transfers"

August 19, 2019 at 8:15 pm #4419065

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

When calling up the page "Transfers" on Front-End there is an error displayed, which reports an issue inisde of the theme´s functions.php file:

Warning: Invalid argument supplied for foreach() in /var/www/vhosts/wp.webcomum.com/httpdocs/gotravel/wp-content/themes/lovetravel-child/functions.php on line 64

I will be sonsulting our second tier support in regards to the used function and get back to you as soon I receive a reply.

Kind regards
Andreas

August 20, 2019 at 7:48 am #4421113

fernandoF-12

Hello,
that's exactly what I mention on my first message, the warning on line 64 is related to get_field('my_repeater_field') that doesn't return an array with the copied values when I change the language like it does in the default language.

Does the field group name changes when I change language?

August 20, 2019 at 6:14 pm #4425907

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

The issue was solved after setting the system fileds for each custom field to copy. For some reason those fields did not show up on the page "Transfer" when clicking "show system fileds". Maybe this is caused due to huge amount of fields.

You can find the field settings at WPML -> Settings -> Custom Fields Translation. Click "show system fields" and make sure that repeater system fields are always set to copy.

hidden link

Let me know if you do have any further questions.

Kind regards
Andreas

August 21, 2019 at 9:32 am #4429425

fernandoF-12

My issue is resolved now. Thank you!