How to Put Custom Taxanomy Meta Box in Main Column

WordPress added the Custom Taxonomy Meta box at sidebar, Is there any way which we can relocate it in the main column , Under Edit box?

Thansk

Related posts

1 comment

  1. Unfortunately WP is hardcoded to generate taxonomy metaboxes in that side location.

    It is tad fragile, but possible to throw generated data around from one location to another:

    add_action( 'add_meta_boxes', 'move_taxonomy_metabox' );
    
    function move_taxonomy_metabox() {
    
        global $wp_meta_boxes;
    
        $taxonomy    = 'test';
        $metabox_key = 'tagsdiv-' . $taxonomy; // or $taxonomy . 'div' if hierarhical
    
        if ( isset( $wp_meta_boxes['post']['side']['core'][$metabox_key] ) ) {
    
            $metabox = $wp_meta_boxes['post']['side']['core'][$metabox_key];
            unset( $wp_meta_boxes['post']['side']['core'][$metabox_key] );
            $wp_meta_boxes['post']['normal']['core'][$metabox_key] = $metabox;
        }
    }
    

    More proper way might be to just nuke generated metabox and completely redo registration.

Comments are closed.