Home › Forums › Backend Issues (wp-admin) › The option page loses the field grouping after translation. › Reply To: The option page loses the field grouping after translation.
Hi @wootimes
I believe that’s because you didn’t set the menu slug, so ACF will generate the slug from the “menu_title” option. A menu slug is like an options page ID for ACF, so it knows where to put the fields.
So when you translated the menu title, the slug got changed also. To fix it, kindly add a “menu_slug” option like this:
acf_add_options_sub_page(array(
'page_title' => __( 'Theme Settings - General', 'textdomain' ),
'menu_title' => 'General',
'menu_slug' => 'theme-general',
'parent_slug' => 'theme-general-settings',
'capability' => 'edit_posts',
'post_id' => 'options',
));
I hope this helps 🙂
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.