Add actions, filters, hooks, and scripts

This commit is contained in:
Takumi
2013-07-24 19:09:02 +10:00
parent e3fb4c69dd
commit 3cade7da5d
17 changed files with 180 additions and 94 deletions

View File

@@ -31,7 +31,10 @@ function sp_venue_custom_columns( $column, $post_id ) {
if ( $typenow == 'sp_venue' ):
switch ( $column ):
case 'sp_sponsor':
the_terms( $post_id, 'sp_sponsor' );
if ( get_the_terms ( $post_id, 'sp_sponsor' ) )
the_terms( $post_id, 'sp_sponsor' );
else
echo '—';
break;
case 'sp_address':
echo get_post_meta( $post_id, 'sp_address', true );