Generate event result based on first column value in total row

This commit is contained in:
Takumi
2013-08-03 01:06:14 +10:00
parent a50000ad1a
commit 54d31c7023
4 changed files with 90 additions and 50 deletions

View File

@@ -76,6 +76,8 @@ function sp_event_stats_meta( $post ) {
$limit = get_option( 'sp_event_team_count' );
$teams = array_pad( array_slice( (array)get_post_meta( $post->ID, 'sp_team', false ), 0, $limit ), $limit, 0 );
$stats = (array)get_post_meta( $post->ID, 'sp_stats', true );
$result = (array)get_post_meta( $post->ID, 'sp_result', false );
print_r( $result );
// Teams
foreach ( $teams as $key => $value ):