I’ve been browsing all over google for a solution to this. I’m writing a custom post types plugin for work to log-in visitors that we get. I initially wrote a mock-up without custom post types, then I came around here from a google search and saw a screenshot that showed an example of custom post types to store information about Attorneys. It showed that someone redesigned the “add new”/”edit” page for custom post types with a whole new interface.
I was wondering if wordpress @ stackexchange would have any resources to redesign the custom post types “add/edit” pages.
I can’t remember the search terms that I did to find that article however.
Thanks,
-Zack
The question / answer you are referring to was Tips for using WordPress as a CMS.
The screenshots posted in that answer were created using the
register_meta_box_cb
argument that is available to for custom post types.register_meta_box_cb must specify a callback function that contains the code for the meta box.
To create the meta box you can use the WordPress built in add_meta_box function which also requires a function to save the entered data when the post is saved.
Here is some example code that I created to add 2 custom meta boxes to my portfolio post type I use on my personal website.
The “Projects” post type I created contained this argument:
'register_meta_box_cb' => 'c3m_project_meta',
The first function below is the call back function for register_meta_box_cb. The following 2 output the html for the meta boxes on the add post page and the last 2 save the entered data.
When I was looking into the same matter, I found this article to be quite interesting:
Chris is right on the money, though an additional resource doesn’t hurt 🙂