Fix styles and functions to align with theme
This commit is contained in:
@@ -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' );
|
||||
|
||||
Reference in New Issue
Block a user