Add season and venue dropdowns to event edit page

This commit is contained in:
Brian Miyaji
2014-01-11 17:05:29 +11:00
parent 81a43185b8
commit 36a8e038b3
4 changed files with 46 additions and 11 deletions

View File

@@ -32,6 +32,12 @@ function sportspress_save_post( $post_id ) {
// Update staff array
sportspress_update_post_meta_recursive( $post_id, 'sp_staff', sportspress_array_value( $_POST, 'sp_staff', array() ) );
// Update season taxonomy
wp_set_post_terms( $post_id, sportspress_array_value( $_POST, 'sp_season', 0 ), 'sp_season' );
// Update venue taxonomy
wp_set_post_terms( $post_id, sportspress_array_value( $_POST, 'sp_venue', 0 ), 'sp_venue' );
break;
case ( 'sp_column' ):