I’ve created a menu page in the dashboard, then I created a custom post type and now I want to put the menu of the custom post type as a submenu under the first menu page I had created. I tried
‘show_in_menu’ => ‘admin.php?page=mytestpage’,
However that did not work. Any tips?
You only need to add the page slug to “show_in_menu”, making the answer to your example:
For a more complete example:
Admin/Settings page of: /wp-admin/admin.php?page=mytestpage
Ended up creating the custom post type and adding my custom page as sub page to that, as suggested by Bainternet