Save team as multiple meta values in event and staff

This commit is contained in:
Takumi
2013-07-26 01:26:37 +10:00
parent f600617fc1
commit 8cb7bfc6e1
3 changed files with 10 additions and 17 deletions

View File

@@ -113,7 +113,7 @@ if ( ! function_exists( 'sp_team_checklist' ) ) {
function sp_team_checklist( $post_id = null ) {
if ( ! isset( $post_id ) )
global $post_id;
$selected = get_post_meta( $post_id, 'sp_team', false );
$selected = (array)get_post_meta( $post_id, 'sp_team', false );
$teams = get_pages( array( 'post_type' => 'sp_team') );
foreach ( $teams as $team ):
$parents = get_post_ancestors( $team );