Forum Replies Created
-
AuthorPosts
-
davud37niMemberOk So i found out how to add a custom menu doing so and a custom post type
`add_action(‘admin_menu’, ‘my_menu_pages’);
function my_menu_pages(){
add_menu_page(‘My Page Title’, ‘Mr Dj’, ‘manage_options’, ‘my-menu’, ‘my_menu_output’ );
add_submenu_page(‘my-menu’, ‘DJS’, ‘DJS’, ‘manage_options’, ‘edit.php?post_type=djs’ );add_submenu_page(‘my-menu’, ‘Events’, ‘Events’, ‘manage_options’, ‘my-menu2’ );
add_submenu_page(‘my-menu’, ‘Subscriptions’, ‘Subscriptions’, ‘manage_options’, ‘my-menu2’ );
add_submenu_page(‘my-menu’, ‘Locations’, ‘Locations’, ‘manage_options’, ‘my-menu2’ );}
But my quesiton is when I create a custom postype is their to stop its menu from appearing in the default position and appear in my menu instead ie hide the main post type ?. for djs
davud37niMemberThank you i understnad that now but how do i turn the likes of add multple labels to one plugin like way we would do here I also hered in the nyc video that their was like a map option in the fields is their a way to get lat and long form them.
https://codex.wordpress.org/Function_Reference/register_post_type
-
AuthorPosts