Support

Account

Home Forums ACF PRO "No options pages exist" error on ACF PRO 5.0.4 Reply To: "No options pages exist" error on ACF PRO 5.0.4

  • Try this instead:

    	if( function_exists('acf_add_options_page') ) {
    		
    		acf_add_options_page(array(
    			'page_title' 	=> 'Options',
    			'menu_title'	=> 'Options',
    			'menu_slug' 	=> 'options',
    			'capability'	=> 'edit_posts',
    			'redirect'	=> false
    		));
    		
    		acf_add_options_sub_page(array(
    			'page_title' 	=> 'Page 1',
    			'menu_title'	=> 'Page 1',
    			'parent_slug'	=> 'options',
    		));
    		
    		acf_add_options_sub_page(array(
    			'page_title' 	=> 'Page 2',
    			'menu_title'	=> 'Page 2',
    			'parent_slug'	=> 'options',
    		));
    	
    	}

    Not need for an action hook.
    Source: http://www.advancedcustomfields.com/resources/acf_add_options_page/