Posted By

tkujawa on 12/19/13


Tagged

wordpress metaboxes


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

fhenderson


Positioning admin metaboxes before Editor


 / Published in: PHP
 

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

  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  

You need to login to post a comment.