Clean up admin post list columns

This commit is contained in:
Brian Miyaji
2014-03-16 12:04:57 +11:00
parent 2515c75384
commit 67fb603ce7
2 changed files with 20 additions and 25 deletions

View File

@@ -24,7 +24,10 @@ function sportspress_manage_posts_custom_column( $column, $post_id ) {
edit_post_link( get_the_post_thumbnail( $post_id, 'sportspress-fit-icon' ), '', '', $post_id );
break;
case 'sp_number':
echo '<strong>' . get_post_meta( $post_id, 'sp_number', true ) . '</strong>';
$number = get_post_meta( $post_id, 'sp_number', true );
if ( $number != null ):
echo '<strong>' . $number . '</strong>';
endif;
break;
case 'sp_views':
echo sportspress_get_post_views( $post_id );