Positioning admin metaboxes before Editor


/ Published in: PHP
Save to your folder(s)

Positioning the normal metaboxes in WordPress admin (like Excerpt, Author etc.) before the WYSIWYG editor


Copy this code and paste it in your HTML
  1. function positioning_metaboxes() {
  2. global $post;
  3. if ( get_post_type($post) == 'post') {
  4. ?>
  5. <script type="text/javascript">
  6. jQuery('#normal-sortables').insertBefore('#postdivrich');
  7. </script>
  8. <?php
  9. }
  10. };
  11. add_action( 'admin_footer', 'positioning_metaboxes' );

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.