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.

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: Africa/Cairo (GMT+03:00)

This topic contains 3 replies, has 2 voices.

Last updated by Osama Mersal 1 year, 8 months ago.

Assisted by: Osama Mersal.

Author Posts
August 8, 2022 at 2:44 pm #11824357

Angeloca

Hi, when I get the value of a relationship field (ACF PRO) on a translated post, if the field has only one item conntected to it, it returns a string instead of an array.

Everything works fine on primary language

August 9, 2022 at 9:29 am #11830223

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

Could you please let me know if the issue is replicable on the sandbox site? (hidden link)

If yes, please let me know the steps to reproduce the issue.

Thanks for your cooperation

Regards,
Osama

August 11, 2022 at 10:30 am #11849205

Angeloca

Hi Osama,
Actually I managed to track the issue and it's caused by the Timber Library

August 11, 2022 at 10:43 am #11849269

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for your update. It's great to hear that you know what caused the issue.

Regards,
Osama

The topic ‘[Closed] Value returns a string instead of an array if the ACF has only one item conntected’ is closed to new replies.