Skip to content

Instantly share code, notes, and snippets.

@zogot
zogot / functions.php
Last active April 14, 2020 06:05
WordPress Meta Boxes above the Editor. Including a sortable content area.
<?php
/**
* Prints all metaboxes with the above context
* above the editor
*/
function themeplugin_prefix_meta_box_above() {
global $post;
echo '<div id="postbox-container-3" class="postbox-container">';
do_meta_boxes( get_current_screen(), 'above', $post );
echo '</div>';