Add actions, filters, hooks, and scripts
This commit is contained in:
20
player.php
20
player.php
@@ -38,16 +38,28 @@ function sp_player_custom_columns( $column ) {
|
||||
if ( has_post_thumbnail() ) the_post_thumbnail( 'sp_icon' );
|
||||
break;
|
||||
case 'sp_position':
|
||||
the_terms( $post_id, 'sp_position' );
|
||||
if ( get_the_terms ( $post_id, 'sp_position' ) )
|
||||
the_terms( $post_id, 'sp_position' );
|
||||
else
|
||||
echo '—';
|
||||
break;
|
||||
case 'sp_league':
|
||||
the_terms( $post_id, 'sp_league' );
|
||||
if ( get_the_terms ( $post_id, 'sp_league' ) )
|
||||
the_terms( $post_id, 'sp_league' );
|
||||
else
|
||||
echo '—';
|
||||
break;
|
||||
case 'sp_season':
|
||||
the_terms( $post_id, 'sp_season' );
|
||||
if ( get_the_terms ( $post_id, 'sp_season' ) )
|
||||
the_terms( $post_id, 'sp_season' );
|
||||
else
|
||||
echo '—';
|
||||
break;
|
||||
case 'sp_sponsor':
|
||||
the_terms( $post_id, 'sp_sponsor' );
|
||||
if ( get_the_terms ( $post_id, 'sp_sponsor' ) )
|
||||
the_terms( $post_id, 'sp_sponsor' );
|
||||
else
|
||||
echo '—';
|
||||
break;
|
||||
endswitch;
|
||||
endif;
|
||||
|
||||
Reference in New Issue
Block a user