I’m currently displaying custom taxonomies in a drop down menu. Each taxonomy has its own little wrapper in the sidebar. Is it possible to move the taxonomy to inside of my custom write box for ease-of-use purposes?

enter image description here

2 s
2

The following is taken from a “move author to publish box” task, but it should give you a starting point. Next you should take a look at “/wp-admin/edit-form-advanced.php” where you’ll find something about get_object_taxonomies() to see how your stuff get’s named, so you can remove and add stuff.

function wpse_remove_author_box() 
{
    if ( ! is_admin() )
        return;

    remove_meta_box( 'authordiv', 'post', 'normal' ); 
}
add_action( 'admin_menu', 'wpse_remove_author_box' );

function wpse_author_to_publish_box() 
{
    if ( ! is_admin() )
        return;

    global $post_ID;
    $post = get_post( $post_ID );
        ?>
        <div id="author" class="misc-pub-section" style="border-top-style:solid; border-top-width:1px; border-top-color:#EEEEEE; border-bottom-width:0px;">
            Author: 
            <?php post_author_meta_box( $post ); ?>
        </div>
        <?php 
}
add_action( 'post_submitbox_misc_actions', 'wpse_author_to_publish_box' );

Leave a Reply

Your email address will not be published. Required fields are marked *