Skip to content
Prem Tiwari
  • WP Tutorials
  • Plugins
  • About Me
  • Featured On
  • Let’s Talk
Prem Tiwari

How to reorder meta box position in WordPress

ByPrem Tiwari December 13, 2024December 13, 2024

How to reorder meta box position in WordPress. In the following example, replace CPT with the post type name, like post, page, book, event, imaginary, foobar…

add_filter( 'get_user_option_meta-box-order_CPT', 'metabox_order' );
function metabox_order( $order ) {
    return array(
        'normal' => join( 
            ",", 
            array(       // vvv  Arrange here as you desire
                'customdiv-{CPT}',
                'authordiv',
                'slugdiv',
            )
        ),
    );
}

Related Questions

  • What is the full form of HFS?
  • What is the full form of SMILE?
  • Maths full form | What is the full form of Maths?
  • What is the full form of WAP?
  • What is the full form of KLA?
  • KVIC full form | What is the full form of KVIC?
  • Remove directory from remote repository after adding them to .gitignore
  • KG Full Form | What is the full form of KG?
  • What is the full form of kiss?
  • What is the full form of MAA?

Collections

  • Crawling and indexing
  • Meetup
  • PHP
  • Plugins
  • SEO
  • Tech Talks
  • WooCommerce Tutorials
  • WordCamp
  • WordPress Tutorials
  • Privacy
  • Cookies
  • Disable Update Notifications
Facebook Twitter Instagram YouTube Linkedin WordPress
Scroll to top
  • WP Tutorials
  • Plugins
  • About Me
  • Featured On
  • Let’s Talk