Hello,
i added a option page in the “admin_menu” hook.
The page shows up in the menu, but when i want to add field for this option page i cant select it in the “position” rule.
if (function_exists("acf_add_options_page")) {
acf_add_options_page(array(
'title' => 'JUSTATEST',
'parent_slug' => 'shop_menuentry',
'capability' => 'manage_options'
));
}
https://s12.postimg.org/4zq1moegd/Unbenannt2.png
https://s12.postimg.org/60loy2625/Unbenannt.png
It’s probably because the page does not have a title.
The argument ‘title’ should be ‘page_title’. https://www.advancedcustomfields.com/resources/acf_add_options_page/
thanks for the tipp, but the problem still exists…
acf_add_options_page(array(
'page_title' => 'JUSTATEST',
'parent_slug' => 'shop_menuentry',
'capability' => 'manage_options'
));
I cannot recreate your problem.
Since you’re adding a sub options page, try using that function instead.
acf_add_options_sub_page(array(
'page_title' => 'JUSTATEST',
'parent_slug' => 'shop_menuentry',
'capability' => 'manage_options'
));