Home › Forums › Backend Issues (wp-admin) › Localizing texts when adding fields via theme › Reply To: Localizing texts when adding fields via theme
I discovered the problem.
Rather than what you have in functions php to this.
add_action('init', 'load_my_acf_field_group');
function load_my_acf_field_group() {
if (function_exists('register_field_group')) {
// register your field group
}
}
The problem is that loading of the text domain does not happen until after function.php is loaded so the translation does not exist when the field group is being created.
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.