Here is an “in a pinch” way that I accomplished multiple menus. Hope this helps someone.
if( function_exists('acf_add_options_sub_page') ) {
acf_add_options_sub_page( __('Global') );
acf_add_options_sub_page( array( 'title' => __('Top Menu'), 'parent' => 'acf' ) );
acf_add_options_sub_page( array( 'title' => __('Main Menu'), 'parent' => 'acf-options-top-menu' ) );
acf_add_options_sub_page( array( 'title' => __('Footer Menu'), 'parent' => 'acf-options-top-menu' ) );
};
if( function_exists('acf_set_options_page_title') ){
acf_set_options_page_title( __('Theme Options') );
}
function some_function() {
// silence is golden
};
add_action('admin_menu', 'setup_menu');
function setup_menu() {
add_menu_page('Theme Menus', 'Theme Menus', 'manage_options', 'acf-options-top-menu', 'some_function');
add_submenu_page('acf-options-top-menu','','Top Menu','manage_options','acf-options-top-menu','');
}
Updating now.
Thanks Big E! Keep up the great work.
Same as the above, option is ticked. I rolled back to 4.1.8.1 and all seems well now.
Just dropping in with my $0.02 as well. When I look at the custom fields for a post, the field doesn’t seem to even be registering it has even been saved. This is only true for the multi-select and checkboxes. When I swap it to radio buttons or select box, I can see a custom field being created with a stored value.
BTW, thanks for all the hard work! You da man!
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.