Support

Account

Home Forums General Issues translate choices of radio/select/checkbox fields Reply To: translate choices of radio/select/checkbox fields

  • Hi @renar

    Could you please test the field object on the translated page by using this code:

    echo "<pre>";
    $select_object = get_field_object('select_field_name', 99);
    var_dump($select_object);
    echo "</pre>";

    Where ’99’ is the ID of the post/page that has the custom field.

    I believe you should add the choices in English like this:

    short : Short
    medium : Medium
    long : Long

    and like this in Hebrew:

    short : קצר
    medium : בינוני
    long : ארוך

    After that, you can get the label based on the value like the example on this page: https://www.advancedcustomfields.com/resources/select/.

    Thanks 🙂