Begin SportsPress

Add basic helpers, post types and taxonomies.
This commit is contained in:
Takumi
2013-07-24 13:44:11 +10:00
parent 1b74053a31
commit e3fb4c69dd
23 changed files with 1595 additions and 1 deletions

17
position.php Normal file
View File

@@ -0,0 +1,17 @@
<?php
function sp_position_tax_init() {
$name = __( 'Positions', 'sportspress' );
$singular_name = __( 'Position', 'sportspress' );
$object_type = array( 'sp_player', 'sp_staff' );
$labels = sp_get_tax_labels( $name, $singular_name );
$args = array(
'label' => $name,
'labels' => $labels,
'public' => true,
'hierarchical' => true,
'rewrite' => array( 'slug' => 'position' ),
);
register_taxonomy( 'sp_position', $object_type, $args );
}
add_action( 'init', 'sp_position_tax_init' );
?>