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_tournament_cpt_init() {
'public' => true,
'hierarchical' => true,
'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'comments', 'page-attributes' ),
'rewrite' => array( 'slug' => 'tournament' ),
'rewrite' => array( 'slug' => 'tournament' )
);
register_post_type( 'sp_tournament', $args );
}
@@ -21,7 +21,7 @@ function sp_tournament_edit_columns( $columns ) {
'title' => __( 'Title' ),
'sp_team' => __( 'Teams', 'sportspress' ),
'sp_event' => __( 'Events', 'sportspress' ),
'sp_sponsor' => __( 'Sponsor', 'sportspress' ),
'sp_sponsor' => __( 'Sponsor', 'sportspress' )
);
return $columns;
}