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.

This topic contains 2 replies, has 2 voices.

Last updated by Nigel 1 year, 9 months ago.

Assisted by: Nigel.

Author Posts
September 15, 2023 at 5:15 pm #14404881

jose-miguelP

Hi, I am trying to output the values of relationship field in user selected language but it's only showing it in default language. How can I show them according to current language.

Remember the values are being retrieved from a custom post type.

Here is the link of the page that I need help with basically it's the product page: hidden link

You can check the values are being shown in default language (spanish) only not in any other languages.

Also the post type is translated and I do see pencil icon.

`Capture.PNG
September 15, 2023 at 9:25 pm #14405495

jose-miguelP

so I was able to solve this by reading the docs : https://wpml.org/faq/how-to-get-other-languages-of-current-post/

Thanks

September 18, 2023 at 1:54 pm #14412843

Nigel
WPML Supporter since 02/2016

Timezone: Europe/Madrid (GMT+02:00)

Hi there

You are working in the PHP templates to output the relationship data in the required language, it seems, and you have seen what's required with the documentation.

If you need any clarification, let me know.