How to add a custom column in custom post type list in admin side wordpress
For add a custom column in admin side list for custom post type or any post type just copy and paste below code into your theme's functions.php function rj_display_rank_column_data( $column, $post_id ) { global $wpdb; switch ( $column ) { case 'rank' : $rank = get_post_meta($post_id,'optimus_rank_field',true); if($rank!='9999' && $rank!='') { echo $rank; }else ...