I’m having a small issue with the custom post type entry screen. I’d like to bump up my metabox right under the content box, but I’m not sure if that’s even possible (as the metaboxes in between are “defaults”, i.e.; Excerpt, Discussion & Author).
I’m applying the standard code:
function ctp_admin(){
add_meta_box('cpt_meta', 'Meta Box', 'cpt_meta', 'cpt_function', 'normal', 'high');
}
Thank you!
Noel
Where you have the parameter ‘normal’ eg. the context parameter change that to read ‘core’.
The default meta boxes are registered as core and are listed first, followed by the ‘normal’ context. The docs don’t actually say you can do it but I have done without any problems.
EDIT:
Make sure your function is registered on the ‘add_meta_boxes’ hook with a high priority eg:
The use of ‘core’ vs. ‘normal’ may not actually make a difference in the latest version.