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.
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!
🤔 Curious about the ACF user experience? So are we! Help guide the evolution of ACF by taking part in our first ever Annual Survey and guarantee you’re represented in the results. https://t.co/0cgr9ZFOJ5— Advanced Custom Fields (@wp_acf) May 8, 2023
© 2023 Advanced Custom Fields.