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 DAD?
  • What is the full form of KLA?
  • What is the full form of BACS?
  • What is the full form of HAD?
  • What is the full form of DAB?
  • How to disable sticky posts feature in WordPress
  • KG Full Form | What is the full form of KG?
  • Maths full form | What is the full form of Maths?
  • What is the full form of ABC ?
  • What is the full form of WAY?

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