/*Display in article list and page list Article ID */
function suxingme_post_id_column ( $post_columns ) {
$beginning = array_slice ( $post_columns , zero , one ) ;
$beginning [ 'postid' ] = __ ( 'ID' , 'suxingme' ) ;
$ending = array_slice ( $post_columns , one ) ;
$post_columns = array_merge ( $beginning , $ending ) ;
return $post_columns ;
}
add_filter ( 'manage_posts_columns' , 'suxingme_post_id_column' ) ; //Add Article List Page ID Title
add_filter ( 'manage_pages_columns' , 'suxingme_post_id_column' ) ; //Add Page List Page
function suxingme_posts_id_column ( $col , $val ) {
if ( $col == 'postid' ) echo $val ;
}
add_action ( 'manage_posts_custom_column' , 'suxingme_posts_id_column' , ten , two ) ; //Add article list page ID column value
add_action ( 'manage_pages_custom_column' , 'suxingme_posts_id_column' , ten , two ) ; //Add Page List Page ID
function suxingme_posts_id_column_css ( ) {
echo '<style type="text/css">#postid { width: 50px; }</style>' ; //ID column width
}
add_action ( 'admin_head-edit.php' , 'suxingme_posts_id_column_css' ) ;