Support

Account

Home Forums ACF PRO Global Option Page – "Sorry, you are not allowed to access this page."

Helping

Global Option Page – "Sorry, you are not allowed to access this page."

  • I am setting up my Global Option pages as follows:

    // ACF options page for global Showrooms microsite content
    
    if( function_exists('acf_add_options_page') ) {
        acf_add_options_page('Showrooms Global');
    }
    
    // ACF options page for global Case Studies archive pages
    if( function_exists('acf_add_options_page') ) {
        acf_add_options_page('Case Studies Global');
    }
    
    // Menu location setup for Showrooms microsite
    function register_showrooms_menu() {
      register_nav_menu('showrooms-menu',__( 'Showrooms Menu' ));
    }
    
    // ACF options page for global Jobs archive page
    if( function_exists('acf_add_options_page') ) {
        acf_add_options_page('Jobs Global');
    }
    
    add_action( 'init', 'register_showrooms_menu' );

    The Showroom Global and Case Studies Global pages are visible in the admin menu. The Jobs Global appears when I click on ‘Plugins’. If I then click on ‘Jobs Global’ I get a 403 error.

    When I look at my Jobs Global field group I cannot see the option page ‘Jobs Global.

    Does anyone know how I might get to the bottom of this?

    Can anyone tell me where option page info is stored?

    Thanks in advance
    Martin

  • If all of these are supposed to be on the main dashboard I would combine this to display all at once:

    if( function_exists('acf_add_options_page') ) {
            acf_add_options_page('Showrooms Global');
    	acf_add_options_page('Case Studies Global');
            acf_add_options_page('Jobs Global');
    
    }

    Then I would register your new menu on its own since it should appear in your appearance button:

    function register_my_menu() {
      register_nav_menu('showrooms-menu',__( 'Showroom Menu' ));
    }
    add_action( 'init', 'register_my_menu' );
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Global Option Page – "Sorry, you are not allowed to access this page."’ is closed to new replies.