Skip to content

How to change post edit screen order in WordPress?

When you work with WordPress, you constantly find yourself having to adapt the platform to your individual needs. One element that often requires customization is the order of sections on the post edit screen. By default, WordPress places the post title at the very top, below is the content editor, and then sections with metadata such as categories, tags, author and publication date. However, there may be times when you would like to change this order. How to do it? Here are some solutions:

1. Using WordPress Hooks

In WordPress, each page component is rendered by something called a “hook.” In the case of the post edit screen, hooks control which sections are displayed and in what order. Thanks to coding, we can manipulate these hooks to change the order of sections.

To do this, you need to add the code to your theme's functions.php file or as a plugin. Below is sample code that brings the “Categories” section above the content editor:

function change_meta_box_order($order) { return array( 'normal' => join(',', array( 'categorydiv', // ID of the "Categories" section 'postexcerpt', // ID of the "Fragment" section 'postimagediv', // "Featured Image" section ID // and so on... )), ); } add_filter('get_user_option_meta-box-order_post', 'change_meta_box_order');

2. Post Types Order plugin

If you're not familiar with coding, you can use a plugin like Post Types Order. This plugin allows you to reorder sections using a drag and drop interface.

To use this plugin:

  1. Install and activate the plugin.
  2. Go to “Settings” > “Post Types Order”.
  3. In the plugin settings you can now change the order of sections on the post edit screen.

It is worth noting that this plugin also allows you to change the order of posts in different post types, which is very useful if you want to change the order of articles on a blog or portfolio page.

3. Adminimize plugin

Another plugin that allows you to change the order of sections on the post edit screen is Adminimize. This plugin not only allows you to reorder sections, but also hide some of them, which is especially useful if you want to simplify the editing screen for yourself or your clients.

After installing and activating the plugin:

  1. Go to “Settings” > “Adminimize”.
  2. In the plugin settings you will find the "Rearrange menu items" option. It will allow you to change the order of sections.

Ultimately, WordPress is extremely flexible and allows for extensive customization. By using these methods, you can customize the post editing screen to suit your needs and improve your efficiency and productivity when working with WordPress.

Check out the offer of 1500+ Premium WordPress plugins and themes!