Now that wordpress 3.1 is out, where is the documentation for grouping custom post types together in the wp backend?
Leave a Reply
You must be logged in to post a comment.
Now that wordpress 3.1 is out, where is the documentation for grouping custom post types together in the wp backend?
You must be logged in to post a comment.
If you are wondering how to group multiple post types under one menu, you can easily do this with the
show_in_menu
argument when setting up your menu. See below:Note: For this to work,
show_ui
must also be set to true.Then you would create a menu using the
add_menu_page
function.In the same fashion, you can also attach post types to any existing menu. For example, it might be useful to attach certain post types to ‘Posts’ and others to ‘Pages’, while others might belong in ‘Tools’. If you attach to an existing menu, you can ignore the
add_menu_page
function above and just modify the$args
when registering your custom post type.Just for future reference as this page ranks quite high in Google, you are not required to create a custom menu item if you just want to group some common post types together in the same menu, you can group together by using existing menu items:
By defining a ‘master’ post type, you can do something similar too: