Support

Account

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!