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
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.