Home › Forums › General Issues › translate choices of radio/select/checkbox fields › Reply To: translate choices of radio/select/checkbox fields
I did var_dump and it returned:
array(22) {
["ID"]=>
int(29)
["key"]=>
string(19) "field_56d2d662eda3d"
["label"]=>
string(11) "I work with"
["name"]=>
string(11) "i_work_with"
["prefix"]=>
string(0) ""
["type"]=>
string(8) "checkbox"
["value"]=>
array(2) {
[0]=>
string(7) "Couples"
[1]=>
string(3) "Men"
}
["menu_order"]=>
int(15)
["instructions"]=>
string(0) ""
["required"]=>
int(1)
["id"]=>
string(0) ""
["class"]=>
string(0) ""
["conditional_logic"]=>
int(0)
["parent"]=>
int(8)
["wrapper"]=>
array(3) {
["width"]=>
string(0) ""
["class"]=>
string(0) ""
["id"]=>
string(0) ""
}
["_name"]=>
string(11) "i_work_with"
["_input"]=>
string(0) ""
["_valid"]=>
int(1)
["choices"]=>
array(9) {
["Children"]=>
string(8) "Children"
["Adolescents"]=>
string(11) "Adolescents"
["Adults"]=>
string(6) "Adults"
["Couples"]=>
string(7) "Couples"
["Families"]=>
string(8) "Families"
["Men"]=>
string(3) "Men"
["Women"]=>
string(5) "Women"
["Geriatric"]=>
string(9) "Geriatric"
["Other"]=>
string(5) "Other"
}
["default_value"]=>
array(0) {
}
["layout"]=>
string(8) "vertical"
["toggle"]=>
int(0)
}
The translation is working for the ‘edit post’ but when I view the page it still only shows the English.
How do I make it show the Hebrew on the hebrew page?
I’ve set the choice in the field to:
Children : יְלָדִים
Adolescents : מתבגר
Adults : מבוגרים
Couples : זוגות
Families : משפחות
Men : גברים
Women : נשים
Geriatric : גֵרִיאַטרִי
Other : אחר
I’m using the_field(‘i_work_with’);
Do I need to use something different for a translation language?
The field_name is the same in both languages…
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.