Multiple settings pages as submenus of one custom main admin menu
-
Hi,
I have created multiple settings pages and want to add these as separate submenus of one custom admin menu in the WordPress admin panel on the left side.
So the structure should look something like this:
-main-admin-menu
–submenu-settings-page-1
–submenu-settings-page-2
….
–submenu-settings-page-nI have already manually added a custom admin-menu to the admin panel. Now I am trying to add my settings pages as submenus.
For now I went to ‘Pods Admin>Edit Pods’ chose one of my settings pages pod and then under the tab ‘Admin UI’ I’ve set ‘Menu location’ to ‘Add a submenu item to another menu’.
Next I have tried out different settings for ‘Custom Menu Location’. The one I got somehow to work is -> admin.php?page=pods-settings-menu-slug-of-settings-page
(“menu-slug-of-settings-page” -> set to my setting page menu slug)
With this I can see the submenu on hover over the main-admin-menu and when I click on it it opens the right settings page. But on the left admin panel the custom main-admin-menu doesn’t expand so the submenus don’t appear visibly open. So the user can’t see which submenu is currently active and open as it is usual with other standard WordPress submenus.So I’m wondering if my value for ‘Custom Menu Location’ ist right. Am I doing something wrong here? I didn’t find any specific information on what to put there for my case. I think that my custom main-admin-menu stays collapsed because I have maybe set the ‘Custom Menu Location’ for my settings page wrong. Is there a right way to achieve that?
- The topic ‘Multiple settings pages as submenus of one custom main admin menu’ is closed to new replies.