Select Page

Custom Columns

The custom columns tab allows you to define columns to be used in the admin page that is formatted or combines multiple fields.This is useful id a field in the table is an image, you can format the column to include the image HTML to show the image in the post type admin page. These columns are non-sortable.

When you add a Custom Column, each column has 3 fields.

Label: This is the label of the column that’s shown in the post type admin page.

Slug: This is a simple slug that represents the column. It’s used in code when retrieving the value e.g. get_post_meta( $post_id, 'column_slug' );

Value: This is the value of the column. pressing down arrow will bring up a list of available fields that can be used and are tagged with {} as in the image below.