Home › Forums › Front-end Issues › field choices › Reply To: field choices
First, why are you using acf/get_valid_field
, you can probably use acf/load_field
and just do a check to make sure you’re not on the acf field group edit page. This would likely solve your problem with sub fields. https://www.advancedcustomfields.com/resources/acfload_field/
for the choices it would probably look something like
foreach ($field['choices'] as $value => $label)) {
$field['choices'][$value] = WPGlobus_Core::text_filter($label, WPGlobus::Config()->language );
}
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.