Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Consolidate Metaboxes into 1 Big Metabox

Register your taxonomies with 'show_ui' => false, and then add a single meta box to manage them.

function create_book_tax() {
        register_taxonomy(
                'genre',
                'book',

                array(
                        'label' => __( 'Genre' ),
                        'rewrite' => array( 'slug' => 'genre' ),
                        'hierarchical' => true,
                        'show_ui' => false,
                )
        );
}

Or unhook the boxes from the side panel and put them below the main editor (using a post type and tax form the docs).

add_action(
  'add_meta_boxes_book',
  function () {
    remove_meta_box( 'genrediv', 'book', 'side' ); 

    $tax_name="genre";
    $taxonomy = get_taxonomy( $tax_name );

    $label = $taxonomy->labels->name;
    $tax_meta_box_id = $tax_name . 'div';

    add_meta_box( 
      $tax_meta_box_id, 
      $label, 
      $taxonomy->meta_box_cb
    ); 
  }
);

A third option is to create your own set of meta box containers and add your boxes to those.

add_action(
  'add_meta_boxes_book',
  function () {
    remove_meta_box( 'genrediv', 'book', 'side' );
  }
);

add_action(
  'dbx_post_sidebar',
  function ($post) {

    $tax_name="genre";
    $taxonomy = get_taxonomy( $tax_name );

    $label = $taxonomy->labels->name;
    $tax_meta_box_id = $tax_name . 'div';

    add_meta_box( 
      $tax_meta_box_id, 
      $label, 
      $taxonomy->meta_box_cb,
      'book',
      'mycol1'
    ); 

    echo 'my boxes'; //debug
    do_meta_boxes('book', 'mycol1', $post);
    do_meta_boxes('book', 'mycol2', $post);
    do_meta_boxes('book', 'mycol3', $post);
    echo 'end my boxes'; //debug
  }
);

If you look at the source you will see that the containers you created are surrounded by divs with the mycol*-sortables id. You should be able to use that to create the columns you are after.

Related Posts:

  1. How to group meta boxes on the post edit page
  2. Passing error/warning messages from a meta box to “admin_notices”
  3. Add “upload media” button in meta box field
  4. How can I create a taxonomy meta-box with search suggestions but no new terms input?
  5. How do I position meta_box on post edit screen after the title?
  6. get registered metaboxes by post type or post ID
  7. How to get meta box data to display on a page
  8. esc before saving or before displaying does it matter?
  9. Add a meta description to home page?
  10. Check if meta key value already exists
  11. get_post_meta doesn’t work
  12. Metabox of one post influence setting on other
  13. How to store multiple input values with same meta_key
  14. unable to save post meta on single field with multiple selects
  15. metabox upload file
  16. Why is variable value emptry in $_POST but available in $_REQUEST?
  17. Why does get_post_meta not work with the posts page?
  18. Taxonomy as checkboxes
  19. How to get meta box values – WP tuts tutorial
  20. Change the post date from a meta box
  21. update_post_meta and get_post_meta not working
  22. Repeatable custom meta fields
  23. metabox with custom post type values
  24. how to save multiple checkboxes value in wordpress dynamically
  25. Using WYSIWYG In custom meta boxes
  26. Multiplicate entry on update_post_meta
  27. Set default post author to none on new post
  28. Undefined index error in custom post metabox
  29. Custom Meta box only returns most recent value on page
  30. Display Term Metabox Only On Certain Term Edit and Add Pages In Admin
  31. How to prevent further updates of custom meta when using actions to set one meta based on another
  32. How to create a button click counter meta box?
  33. meta box & callback function
  34. $_GET & $post_ID
  35. get_post_meta as a list for drop down search filter
  36. input radio ‘checked’ saves, but select option ‘selected’ doesn’t
  37. multi custom fields and taxonomy search
  38. Parse a text area custom meta box and assign as value to existing meta keys
  39. Getting metabox value?
  40. How to modify the output of wp_terms_checklist when used within the built-in category metabox on edit posts?
  41. Hide Page Title with Post Meta
  42. Save meta data with post, Without using any plugin [closed]
  43. How to show taxonomy terms from wordpress database?
  44. Editor meta box Showing but not saving
  45. How can i get multi checkboxes value in metbox?
  46. Show value of select dropdown in meta box
  47. remove a single post_meta
  48. Echo 2 values from one key in Array with get_post_custom
  49. save radio button selection in post-meta on submit
  50. add post meta front end edit
  51. post meta – problem : copy the same meta for all the articles
  52. Custom Meta Data is not being saved
  53. Update Post Meta in Front End with a form
  54. Update Post meta with custom variable
  55. get_post_meta not working on my custom-function page
  56. update_post_meta doesn’t work
  57. Removing Meta Generator
  58. Only allow one meta key value per post in a category
  59. use post meta in add_meta_boxes action
  60. Multiple category filters
  61. Looking for suggestions on creating simple database (Help!!)
  62. Custom meta box not saving values of radio buttons in WordPress
  63. Can’t save drop down select date in meta boxes
  64. update_post_meta does not work
  65. add_post_meta not saved
  66. when saveing $meta_box i get Undefined index error
  67. Updating post meta and Meta Box plugin
  68. Related posts and custom meta_box?
  69. Select Options Meta Data is Not Updating in Edit Meta Box
  70. dynamically get post attachment while editing
  71. How to display meta box data using “Meta boxes as needed”
  72. Metadata in loops
  73. Allow iframe in custom meta box
  74. Calling Data from Custom Meta Box
  75. How can i remove blank area caused by theme’s post meta boxes?
  76. Datepicker altField and altFormat to save a new meta key/value in a post?
  77. My meta box don’t want to save value
  78. CPT posts in drop downed in meta box on page doesn’t return post ID
  79. Access the environment of an admin page from another admin page
  80. Add filter ‘wpautop’ to meta box textarea
  81. Dynamically Creating Meta Boxes
  82. Remove border on custom meta box
  83. Create a page Meta Box listing all blog users
  84. Add a custom field to top attribute in WooCommerce
  85. wp_editor in metabox not working
  86. Select box saves but doesn’t update value in admin
  87. retrieve meta key when checkbox is used
  88. Add Meta Box not showing on New Post – Custom meta box not showing
  89. How To Add Custom Meta PDF Upload Box to WooCommerce Products (and post link on frontend)
  90. Create Multiple File Upload Metabox in WordPress
  91. wpalchemi metabox doesn’t show value from my post type
  92. How to use Gutenberg in CMB2?
  93. WP_Meta_Query object with conditionals
  94. Saving multiple fields (dropdown and text) in custom metabox
  95. Add post meta data date to event
  96. transfer two existing taxonomy terms into one custom metabox
  97. Edit is changing my custom’s post type parent id
  98. How to set default screen options?
  99. Reload meta box content with AJAX
  100. Saving custom input from settings sidebar of pages in WordPress
Categories metabox Tags metabox, post-editor, post-meta, taxonomy
Query wp_usermeta alongside wp_users
Unable to get content from $post on first publish

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress