How to arrange custom fields in columns in WordPress
WordPress can arrange whole meta boxes into one or two editor columns, but it does not provide a built-in grid for individual custom fields. For that, write a custom meta box with admin CSS or use a field-layout plugin. If you only mean columns in the Posts list, that is a separate admin-column task.
- 01Confirm which columns you need
- 02Try the built-in editor layout
- 03Build a custom field grid
- 04Keep the block editor in mind
- 05Test saving and narrow screens
- 06Use a layout plugin for speed
What you need
- Administrator access to WordPress
- A custom post type or post edit screen that contains the fields
- A child theme, custom plugin, or code snippets tool for the manual code route
- A staging site or recent backup
Confirm which columns you need
First decide whether you mean the post editor or the Posts list. In the editor, columns control where fields appear while someone edits a post. In the Posts list, columns show saved field values beside titles, authors, and dates.
These are different jobs. WordPress Screen Options can control visible list-table columns, while a field layout requires a custom meta box or a custom-field extension. WordPress documents list-table columns separately from the edit screen layout.
Try the built-in editor layout
Open a post or custom post type and expand Screen Options at the top right. If the screen provides a layout choice, select two columns, then drag complete meta boxes between the main area and the sidebar.
This is the manual route that is fine for a few independent boxes. It does not split the individual inputs inside one custom-fields box into a flexible grid, and the editor remembers the arrangement per user and screen. WordPress meta boxes are designed to be moved and hidden from the edit screen.
Build a custom field grid
For individual fields, create your own meta box with add_meta_box(), register it through the add_meta_boxes action, and output the inputs in a wrapper with CSS Grid or Flexbox. Give each field a class such as field-half or field-third, then make those classes stack at a narrow screen width.
Save the values with a save hook such as save_post. Include a nonce check, a capability check, autosave and revision checks, and sanitise every submitted value. The official example warns that saving can run more than once for an update, so do not assume one request equals one normal edit.
Keep the block editor in mind
If you are using WordPress’s default Custom Fields panel, open the editor options, choose Preferences, and enable Custom fields under the advanced settings if the panel is hidden. That exposes key-and-value metadata, but it does not create a designed multi-column form.
If your fields come from a custom-fields plugin, check that its field group is assigned to the correct post type and location. A common failure is styling the wrong wrapper or expecting a block-editor panel to obey CSS intended for a classic meta box.
Test saving and narrow screens
Create a draft with values in every column, save it, reload the edit screen, and confirm that each value remains in the correct field. Test users with different roles as well, because capability checks can make a box appear for an administrator but not for an editor.
Then test a narrow browser window. Long labels, image controls, repeaters, and date pickers are the parts most likely to break a hand-written grid. If another plugin adds admin CSS, inspect the field wrapper before changing widths; an unrelated rule can squeeze the whole metabox into a narrow panel.
Use a layout plugin for speed
For a structured editor screen, Meta Box Columns is the quicker route. It provides a 12-column layout for Meta Box fields, so you can assign widths such as 6 columns for two half-width fields or 4 columns for three equal fields, without maintaining your own admin markup and CSS.
Choose it when the goal is arranging fields inside the editing screen. It is not the right tool for showing custom-field values as columns in the Posts list; that requires an admin-column feature or custom list-table code. Meta Box’s documentation describes the field-grid approach and the per-field column settings.
Let Meta Box Columns do it
12-column drag-and-drop layouts for Meta Box fields; choose it when structured custom-field screens matter more than post-list columns.
Sources
- wordpress.org /documentation/article/posts-screen/?utm_source=openai
- make.wordpress.org /support/user-manual/pages/edit-page-screen/?utm_source=open…
- developer.wordpress.org /reference/functions/add_meta_box/?utm_source=openai
- wordpress.org /documentation/article/assign-custom-fields/?utm_source=open…
- docs.metabox.io /extensions/meta-box-columns/?utm_source=openai
- developer.wordpress.org /plugins/metadata/custom-meta-boxes/?utm_source=openai
Questions
- Can WordPress arrange individual custom fields into columns by itself?
- No. WordPress can place complete meta boxes in a one- or two-column edit-screen layout, but its built-in Custom Fields panel does not provide a flexible grid for individual inputs. You need to build a custom meta box and style its fields, or use a custom-fields extension that supports columns.
- What is the difference between editor columns and admin columns?
- Editor columns control the form used to edit one post. Admin columns control the table at Posts or a custom post type, where you review many posts at once. A plugin or code that handles one does not automatically handle the other, so confirm which screen needs changing before choosing a solution.
- Can I arrange fields without a plugin?
- Yes, but you need to write the form and its styling yourself. Register a meta box, output the inputs in a grid, enqueue admin CSS for the relevant edit screen, and save the values securely with a save hook. This is reasonable for a small, controlled project, but future field changes and WordPress editor changes become your maintenance job.
- Why do my custom fields still appear in one narrow column?
- The fields may be inside a single meta box that WordPress is only moving as a unit. Check Screen Options, confirm the box is in the main area rather than the sidebar, and inspect the field wrapper for admin CSS that sets a narrow width. In the block editor, also check whether the meta-box area is being displayed in a constrained panel.
- Does Meta Box Columns arrange fields on the front end too?
- No. Meta Box Columns is for arranging Meta Box fields in the WordPress editing interface. It does not automatically create a front-end layout for the saved values. You still need a template, block binding, page-builder integration, or other output code to display those values to site visitors.