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

@@ -83,4 +83,15 @@ if ( ! function_exists( 'sp_team_logo' ) ) {
endif;
}
}
if ( ! function_exists( 'sp_get_teams' ) ) {
function sp_get_teams( $post_id = null ) {
$teams = get_post_meta( $post_id, 'sp_teams', true );
if ( isset( $teams ) && $teams )
$teams = (array)unserialize( $teams );
else
$teams = array();
return $teams;
}
}
?>