Support

Account

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 🙂