Change div to league and pos to position

This commit is contained in:
ThemeBoy
2013-12-26 06:26:55 +11:00
parent 05a80bb727
commit 3e99dc70a2
14 changed files with 93 additions and 93 deletions

18
admin/terms/league.php Normal file
View File

@@ -0,0 +1,18 @@
<?php
function sp_league_term_init() {
$name = __( 'Leagues', 'sportspress' );
$singular_name = __( 'League', 'sportspress' );
$lowercase_name = __( 'leagues', 'sportspress' );
$object_type = array( 'sp_team', 'sp_event', 'sp_player', 'sp_staff' );
$labels = sp_tax_labels( $name, $singular_name, $lowercase_name );
$args = array(
'label' => $name,
'labels' => $labels,
'public' => true,
'hierarchical' => true,
'rewrite' => array( 'slug' => 'league' )
);
register_taxonomy( 'sp_league', $object_type, $args );
}
add_action( 'init', 'sp_league_term_init' );
?>