Enable custom headings for player positions
This commit is contained in:
@@ -256,3 +256,19 @@ function sp_venue_map( $term = 0 ) {
|
||||
$meta = get_option( "taxonomy_$term" );
|
||||
sp_get_template( 'venue-map.php', array( 'meta' => $meta ) );
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
|
||||
function sp_get_position_caption( $term = 0 ) {
|
||||
$meta = get_option( "taxonomy_$term" );
|
||||
$caption = sp_array_value( $meta, 'sp_caption', '' );
|
||||
if ( $caption ) {
|
||||
return $caption;
|
||||
} else {
|
||||
$term = get_term( $term, 'sp_position' );
|
||||
return $term->name;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user