Home › Forums › General Issues › Can't display WPML translated select choices › Reply To: Can't display WPML translated select choices
Hi James,
let me briefly explain my situation where an option to translate choices would be more than welcome. I use ACF select fields mainly for products (woocommerce). I have a select field for product’s materials:
– mat_1 : Aluminum
– mat_2 : Stainless steel
– mat_3 : Glass and aluminium
This is for my default English language, but I also need the same choices for Slovenian language.
But fortunately I’ve found a solution that worked out great:
First I set all fields to Copy (in Edit Field Group) and Copy from translation to original (in WPML Translation Management/Multilingual Content Setup).
Then I wrote if ICL_LANGUAGE_CODE != ‘en’ to output translated string from POT file otherwise normally echo get_field().
Thanks!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.