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!
Accordions are a great way to group related information while allowing users to interactively show and hide content. In this video, Damon Cook goes in-depth on how to create an accessible accordion block using ACF PROβs Repeater field.https://t.co/RXT0g25akN
— Advanced Custom Fields (@wp_acf) March 2, 2023
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.