diff --git a/includes/wporg-meeting-posttype.php b/includes/wporg-meeting-posttype.php index 4768a9b..b623eef 100644 --- a/includes/wporg-meeting-posttype.php +++ b/includes/wporg-meeting-posttype.php @@ -64,7 +64,7 @@ public function meeting_custom_columns( $column, $post_id ) { switch ( $column ) { case 'team': $team = get_post_meta( $post_id, 'team', true ); - echo esc_html( $team ); + echo esc_html( ucwords( $team ) ); break; } switch ( $column ) { @@ -375,7 +375,7 @@ public function get_occurrences_for_period( $request ) { 'date' => $occurrence, 'time' => $meeting->time, 'datetime' => "{$occurrence}T{$meeting->time}+00:00", - 'team' => $meeting->team, + 'team' => ucwords( $meeting->team ), 'link' => $meeting->link, 'title' => wp_specialchars_decode( $meeting->post_title, ENT_QUOTES ), 'location' => $meeting->location,