Change league to division and remove sponsors

This commit is contained in:
Takumi
2013-10-24 11:56:53 +11:00
parent b6121a0487
commit 102d6d20e1
15 changed files with 121 additions and 146 deletions

View File

@@ -210,7 +210,7 @@ if ( !function_exists( 'sp_post_checklist' ) ) {
$parents = get_post_ancestors( $post );
if ( $filter ):
$filter_values = (array)get_post_meta( $post->ID, $filter, false );
$terms = (array)get_the_terms( $post->ID, 'sp_league' );
$terms = (array)get_the_terms( $post->ID, 'sp_division' );
foreach ( $terms as $term ):
if ( is_object( $term ) && property_exists( $term, 'term_id' ) )
$filter_values[] = $term->term_id;