I'm creating an events custom post type and want to add an extra submenu item in the admin panel for the Events type (a Settings page).
- Add New
Actually, I have already created the menu item, but for the life of me I can't get it to do anything other than redirect to the admin homepage of the main site.
I should point out that I've got WP in multisite mode, and I'm trying to get this to work on a sub-site.
So using add_submenu_page I have this line:
add_submenu_page('edit.php?post_type=event', 'settings', 'Settings', 'manage_options', 'event_settings', array(&$this,'show_menu'));
Which is similar to the code found at http://codex.wordpress.org/Adding_Administration_Menus
As I say, it puts the menu item in the right place and this is the URL it links to: http://localhost/wp3/subsite/wp-admin/edit.php?post_type=event&page=event_settings
But when I click on the link it takes me to:
i.e. the main site admin page.
I feel like I'm missing something obvious, but I've been around in so many circles now, I need a little help.