Just did an upgrade, only had one options page, and when I used the example code with the 3 options pages, the main options page gives me an ‘insufficient privileges’ message
if(function_exists(‘acf_add_options_page’)) {
acf_add_options_page();
acf_add_options_sub_page(‘Header’);
acf_add_options_sub_page(‘Footer’);
}
This page wp-admin/admin.php?page=acf-options
produces an ‘insufficient privileges’ message unless I remove the other two subpages. FYI, just in case it trips others.
Hi @bluecomet
Yes, by default the parent options page will re-direct to the first child options page.
This is the same functionality as per ACF4.
May I ask how you stumbled across the issue?
Thanks
Elliot