I’m writing a plugin that relies on custom post types, new taxonomy and few custom fields.
All this data will be private (not queryable or searchable).
I’d like to provide an admin page to the user, to add and edit this data in a more user-friendly way.
For instance, the custom post type will have only a title and the excerpt field, one taxonomy and the custom fields.
I know how to add meta boxes to a custom post type, but this is not enough to me.
I’d like to make a completely custom html interface that will take care of adding/saving/deleting the custom post type and handle the taxonomy and metas.
Just to be clear, I know already ho to write a normal plugin and handle plugin’s options.
I don’t know how, with this plugin I can:
- Add a new menu item in WordPress admin menu
- In this menu item, handle, with a custom interface, the custom post type
There is some how-to out there that could help me achieve this?
You will need to start reading about the setting and options API, and then pull your CPT and Taxonomies into it.
Have a start here:
Creating Options Pages « WordPress Codex
Settings API « WordPress Codex
Class Reference/WP List Table « WordPress Codex
Create a Custom WordPress Plugin From Scratch
Administration Menus « WordPress Codex
This is how it can be done:
Add menus and submenus like:
finally:
Hope I put all that in correctly. Nest any else if’s inside the taxonomy check and add same for other post types.