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 🙂
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.