Add API function for abbreviations

This commit is contained in:
Brian Miyaji
2015-01-25 16:39:49 +11:00
parent 1e5e2ca883
commit 87094c95ec

View File

@@ -131,6 +131,14 @@ function sp_get_logo( $post = 0, $size = 'icon', $attr = array() ) {
return get_the_post_thumbnail( $post, 'sportspress-fit-' . $size, $attr );
}
function sp_get_abbreviation( $post = 0 ) {
return get_post_meta ( $post, 'sp_abbreviation', true );
}
function sp_the_abbreviation( $post = 0 ) {
echo sp_get_abbreviation( $post );
}
function sp_the_logo( $post = 0, $size = 'icon', $attr = array() ) {
echo sp_get_logo( $post, $size, $attr );
}