I’ve been looking for this all day and can’t find it.
I’m working on a custom contacts page and I am using the custom post type feature so that I can have more control over it. I’m looking to change the edit page to be a custom template, (example when I go to /wp-admin/post.php?post=1234&action=edit
), I want it to show a custom page. I don’t need any meta boxes or anything. Perhaps the editor, but near the bottom of the page (not at the default top).
I’ve found how to remove the meta boxes, but I haven’t found how to get a clean slate on the CPT edit page.
function remove_metaboxes(){
remove_meta_box('postexcerpt', 'obpcontacts', 'normal'); // Excerpt box
remove_meta_box('commentstatusdiv', 'obpcontacts', 'normal'); // Comment status box
remove_meta_box('commentsdiv', 'obpcontacts', 'normal'); // Comment box
}
add_action( 'add_meta_boxes', 'remove_metaboxes',11 );
Thoughts on how to create a custom template in the wp-admin edit section for my custom post type?