Add ability to select team players

This commit is contained in:
Takumi
2013-07-25 03:59:47 +10:00
parent 3cade7da5d
commit 39d0c1aac6
12 changed files with 133 additions and 62 deletions

View File

@@ -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;
}