Add single performance name option

This commit is contained in:
Brian Miyaji
2017-01-08 11:02:32 +11:00
parent e468ef8ac7
commit 0960bd7c3c
5 changed files with 19 additions and 4 deletions

View File

@@ -163,6 +163,15 @@ function sp_get_performance( $post = 0 ) {
return $event->performance();
}
function sp_get_single_name( $post = 0 ) {
$single = get_post_meta( $post, 'sp_single', true );
if ( '' !== $single ) {
return $single;
} else {
return get_the_title( $post );
}
}
function sp_event_logos( $post = 0 ) {
sp_get_template( 'event-logos.php', array( 'id' => $post ) );
}