Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Add Cusotm Menu Item #4277
    davud37ni
    Member

    Ok 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

    in reply to: Blank plugin title is not showing #4275
    davud37ni
    Member

    Thank 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

Viewing 2 posts - 1 through 2 (of 2 total)