I have created an custom admin menu page called FCC Youtube with add_menu_page
function
which has some custom fields I manually generated via HTML and PHP:
code ( just the part how I created this custom admin menu page )
// creat admin menu page
add_action("admin_menu","youtube_menu");
function youtube_menu() {
add_menu_page('Youtube Channel Settings', 'FCC Youtube', 'edit_pages', 'youtube_channel_settings', 'youtube_channel_render_page','http://fcc.sportingpulse.com/wp-content/uploads/2013/04/youtube_icon16x16.png');
add_action('admin_init','youtube_regsettings');
}
I want to create many admin menu pages like the FCC Youtube page I’ve created.
( FCC Vimeo, FCC Buttons etc.)
I wish these pages have ACF field groups.
, means I can create ACF field groups and assign the group to my custom admin menu pages
It will work exactly like ACF Option-addon page.
ACF Option-addon doesn’t allow me to create multiple top level Options page.
I understand I can create multiple second-level option page
but I wish to have many TOP Level ones, but I still can’t figure out how to do this!
I have purchased the Option add-on but it doesn’t allow me to create multiple “top level” Option page, I only have a parent page called “Options” then lots of sub pages under it, I wish to have other “Top Level” pages have other names than “Options” , but it seems very difficult to do : s,
see this
I have all these bunch of options page under the Parent ‘Options’, I can’t move them outside of the parent
Interesting exercise, a one page plugin that believes it deserves a first level menu page is wrong, IMO. I use the same technique with Jetpack.
To create sub-pages in the Options Page add-on, read the documentation.
The logic of this menu/sub-menu swapping is:
Steps 1 and 2 are to make this example generic.
To use it with any other plugin, only steps 3 and 4 are necessary, adjusting the slugs.
To move it into a default WP menu, for example, use
add_theme_page
(Appearance) oradd_options_page
(Settings).