
Hey everyone,
i just purchased the options-page-addon (version 1.2.0), ACF version 4.3.9, WordPress version 4.0, readed the documentation and watched the video-tutorial.
The Problem i have is, that i only have the standard “OPTIONS” menu enabled with no submenu’s, my code in functions.php underneath is completely ignored. I also placed the code above the admin_menu() functions as discribed.
Does anybody have a suggestion what am i doing wrong?
Kind regards,
Bernhard
/*******************************************************
OPTION MENU FOR SNOWHEIGHT AND LIFTS
*******************************************************/
/*
if( function_exists('acf_add_options_page') ) {
acf_add_options_page();
acf_add_options_sub_page("Schneehöhe");
acf_add_options_sub_page("Pisteninfos");
}
*/
if( function_exists('acf_add_options_page') ) {
acf_add_options_page(array(
'page_title' => 'Pisteninfos',
'menu_title' => 'Pisteninfos',
'menu_slug' => 'pisteninfos-settings',
'redirect' => false
));
acf_add_options_sub_page(array(
'page_title' => 'Schneehöne',
'menu_title' => 'Schneehöhe',
'parent_slug' => 'pisteninfos-settings',
));
acf_add_options_sub_page(array(
'page_title' => 'Lifte',
'menu_title' => 'Lifte',
'parent_slug' => 'pisteninfos-settings',
));
}
I just found the solution. The documentation is a little bit deceptive!
With the already bought options-page plugin, i was able to upgrade to the pro version for free. as i did it, everything works as expected!