Custom backend post list columns

add_filter( ‘manage_edit-colourmedia_columns’, ‘colourmedia_columns’ ) ; // init function function colourmedia_columns( $columns ) { $columns = array( ‘cb’ => ‘<input type=”checkbox” />’, ‘thumbnail’ => __( ‘Thumbnail’ ), ‘category’ => __( ‘Category’ ), ‘title’ => __( ‘Name’ ), ‘city’ => __( ‘City’ ), ‘featured’ => __( ‘Featured’ ), ); return $columns; }

Register custom post type

function colourmedia_post_type() { $args = array( ‘public’ => true, ‘label’ => __( ‘BackendName’, ‘textdomain’ ), ‘supports’ => array( ‘title’, ‘editor’, ‘author’, ‘thumbnail’, ‘excerpt’, ‘comments’, ‘custom-fields’ ), ‘menu_icon’ => ‘dashicons-megaphone’, ); register_post_type( ‘colourmedia’, $args ); } add_action( ‘init’, ‘colourmedia_post_type’ );