add_meta_box with 'side' context messes up admin area
-
Hi
I’m going nuts trying to add a meta box to a custom post type. If I add the context as ‘side’, all the boxes (title, text editor etc.) all move to the side too!He’s the code I’ve got…
function boxed_add_metaboxes($page,$post) { if(in_array($page,array('custom-post-type'))) add_meta_box('in-featured-item','Featured Item','cpt_display_fields',$page,'side','low'); } add_action('add_meta_boxes','boxed_add_metaboxes',10,2);
Any of you fine people have any ideas?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘add_meta_box with 'side' context messes up admin area’ is closed to new replies.