How to change default meta box locations?
-
Hi WordPress gurus,
I am trying to change the Post Tags meta box default location – from “side” to “normal” (actually from the right small column to the bigger left one).
Here is how I try doing it – firstly remove the meta box, and then re-add it, this time setting “normal” instead of “side”. Here’s the code:
add_action('admin_menu','customize_meta_boxes'); function customize_meta_boxes() { remove_meta_box('tagsdiv-post_tag','post','side'); } add_action( 'add_meta_boxes', 'my_add_meta_boxes' ); function my_add_meta_boxes(){ add_meta_box('tagsdiv-post_tag', 'Автомобили', 'post_tags_meta_box', 'post', 'normal', 'core', array( 'taxonomy' => 'post_tag' )); }But the only result I gain is to only remove the meta box. Where am I wrong?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘How to change default meta box locations?’ is closed to new replies.