I believe what I am trying to achieve is quite easy but I am failing to grasp what is needed here.
I want a section in the admin panel... lets say "page sections"
under that, I want to be able to add multiple post types. i.e. lets say
"add member", "add foo", "add bar" ...
I currently have
add_action( 'init', 'add_item' );
add_action( 'init', 'add_item2' );
function add_item(){
register_post_type('item1', array(
'label' => 'Item label',
'public' => true,
'show_ui' => true,
'capability_type' => 'page',
'capabilities' => array(
),
'hierarchical' => true,
'rewrite' => array('slug' => 'puds'),
'query_var' => true,
'supports' => array(
'title',
'editor',
'excerpt',
'custom-fields',
'revisions',
'thumbnail',
'author',
'page-attributes',
'post-formats'
)
) );
}
function add_item2(){
register_post_type('item2', array(
'label' => 'Item label 2',
'public' => true,
'show_ui' => true,
'capability_type' => 'page',
'capabilities' => array(
),
'hierarchical' => true,
'rewrite' => array('slug' => 'puds'),
'query_var' => true,
'supports' => array(
'title',
'editor',
'excerpt',
'custom-fields',
'revisions',
'thumbnail',
'author',
'page-attributes',
'post-formats'
)
) );
}
which would generate

but i want one menu heading with more than one menu selection...
Any ideas?