Better way of getting ID

This commit is contained in:
Brian Miyaji
2014-01-22 21:01:58 +11:00
parent 7555d78739
commit d7509b8614
12 changed files with 41 additions and 53 deletions

View File

@@ -2,6 +2,9 @@
if ( !function_exists( 'sportspress_event_venue' ) ) {
function sportspress_event_venue( $id ) {
if ( ! $id )
$id = get_the_ID();
$venues = get_the_terms( $id, 'sp_venue' );
$output = '';