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. Create more Meta Boxes as needed
  80. How can I put a custom meta box above the editor but below the title section on the edit post page?
  81. Set Default Admin Screen options & Metabox Order
  82. How to set default screen options?
  83. Attaching taxonomy data to post with wp_insert_post
  84. Can I add a Category Metabox to attachment?
  85. Add a Meta Box for uploading a SECOND Featured Image?
  86. Metaboxes – why they don’t render php in expected manner?
  87. How to make remove display none to this div container in post meta box?
  88. How to add new Metadata options (Date, Author, etc.) for Posts?
  89. Saving multiple custom meta box fields
  90. Post meta box data not saving
  91. Is there a way to remove the Add boxes from the Screen Options menu metabox?
  92. how making a selection from a taxonomy selector fixed definitively
  93. How can I put a checkbox in the post editor
  94. Move metabox up on side WordPress Post admin
  95. Filtering Tabs in a Custom Post Type’s Edit Page
  96. Saving custom input from settings sidebar of pages in WordPress
  97. Using add_meta_box on a page with file upload and importing fields
  98. Hide individual page title using checkbox in custom meta box?
  99. Two related taxonomies. how to filter terms in second taxonomy depending on selected term in first taxonomy on Post edit page?
  100. How to get a checkbox element inside a metabox, to return its proper value on Post
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
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
© 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