Hi all,
I have created the menu item in admin menu to lists posts from specific category,now i want its submenu "add new" that should open a page to add new post to specific category, that user does not need to select category,
the code for adding menu is
add_action('admin_menu', 'events_menu');
function events_menu() {
add_menu_page('Events Page', 'Events Posts', 'manage_options', 'edit.php?category_name=events','','',15 );
}
now for submenu option what should be the parent slug?as in parent slug i have placed a link.
any idea?