I am developing a new project that includes many post types each with their own custom fields, I would like to know if it is possible to organize in the admin menu so as to have a mother post type and a sub menu with child post types.
See the picture to better understand
many thanks
Aldo
Hi Aldo,
Thank you for contacting us and I'd be happy to assist.
To control the position or arrangement of the custom post type in the admin menu, you can use the input field below the "show_in_menu" option.
For example, suppose that you have two custom post types:
a). Book Shops
yourwebsite.com/wp-admin/edit.php?post_type=book-shop
b). Books
yourwebsite.com/wp-admin/edit.php?post_type=book
If you'd like to move the "Books" post type under the menu item for the "Book Shops", you can go to the "Books" post type's settings screen, and add "edit.php?post_type=book-shop" in the input field below the "show_in_menu" option.
( as shown in the attached screenshot )
For even control and management of admin menu options, you can also check out a third-party plugin like "Admin Menu Editor":
https://wordpress.org/plugins/admin-menu-editor/
I hope this helps and please let me know if you need any further assistance around this.
regards,
Waqar