Add ability to select team players
This commit is contained in:
@@ -9,7 +9,7 @@ function sp_table_cpt_init() {
|
||||
'public' => true,
|
||||
'hierarchical' => false,
|
||||
'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'page-attributes' ),
|
||||
'rewrite' => array( 'slug' => 'table' ),
|
||||
'rewrite' => array( 'slug' => 'table' )
|
||||
);
|
||||
register_post_type( 'sp_table', $args );
|
||||
}
|
||||
@@ -20,8 +20,8 @@ function sp_table_edit_columns( $columns ) {
|
||||
'cb' => '<input type="checkbox" />',
|
||||
'title' => __( 'Title' ),
|
||||
'sp_team' => __( 'Teams', 'sportspress' ),
|
||||
'sp_league' => __( 'League', 'sportspress' ),
|
||||
'sp_season' => __( 'Season', 'sportspress' ),
|
||||
'sp_league' => __( 'Leagues', 'sportspress' ),
|
||||
'sp_season' => __( 'Seasons', 'sportspress' )
|
||||
);
|
||||
return $columns;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user