Support

Account

Home Forums General Issues Options page plugin Reply To: Options page plugin

  • Hi @elliot,

    I have bought your options page plugin 🙂

    Got one question about creating multiple options pages. I want to create multiple, each with it’s own menu, to keep things simple for the client rather than having a huge list of field groups for one option page.

    It would be helpful if I could just page 3 of those blocks with a different name for the options page:

    function homepage_acf_options_page_settings( $settings )
    {
    	$settings['title'] = 'Homepage Settings';
    	$settings['pages'] = array('subHeader', 'USP_Icons', 'subFooter');
     
    	return $settings;
    }
     
    add_filter('acf/options_page/settings', 'homepage_acf_options_page_settings');

    But I guess that isn’t possible. So I tried this:

    if( function_exists('acf_add_options_sub_page') )
    {
        acf_add_options_sub_page(array(
            'title' => 'Global Settings',
            'parent' => 'options-general.php',
            'capability' => 'manage_options'
        ));
    }
    

    Now the options page for Global Settings won’t show up.

    Are there any more tricks I can do to create three different options pages?

    Thanks in advance! 😉

    Best regards,
    Marcoevich