Fix styles and functions to align with theme

This commit is contained in:
Brian Miyaji
2014-01-21 02:51:16 +11:00
parent f9a367ae6e
commit 08ce1eea27
11 changed files with 189 additions and 56 deletions

View File

@@ -3,7 +3,7 @@ function sportspress_position_term_init() {
$name = __( 'Positions', 'sportspress' );
$singular_name = __( 'Position', 'sportspress' );
$lowercase_name = __( 'position', 'sportspress' );
$object_type = array( 'sp_player' );
$object_type = array( 'sp_player', 'attachment' );
$labels = sportspress_get_term_labels( $name, $singular_name, $lowercase_name );
$args = array(
'label' => $name,
@@ -14,5 +14,6 @@ function sportspress_position_term_init() {
);
register_taxonomy( 'sp_position', $object_type, $args );
register_taxonomy_for_object_type( 'sp_position', 'sp_player' );
register_taxonomy_for_object_type( 'sp_position', 'attachment' );
}
add_action( 'init', 'sportspress_position_term_init' );