Home › Forums › General Issues › translate choices of radio/select/checkbox fields › Reply To: translate choices of radio/select/checkbox fields
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/.
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!
CPT registration is coming to ACF! We demoed the new feature during the most recent session of ACF Chat Fridays. Check out the summary for the details. https://t.co/k2KQ3WWBAz— Advanced Custom Fields (@wp_acf) March 7, 2023
© 2023 Advanced Custom Fields.