diff --git a/templates/player-gallery-thumbnail.php b/templates/player-gallery-thumbnail.php index 465cb134..c28ed83c 100644 --- a/templates/player-gallery-thumbnail.php +++ b/templates/player-gallery-thumbnail.php @@ -22,12 +22,12 @@ extract( $defaults, EXTR_SKIP ); // Add player number to caption if available $player_number = get_post_meta( $id, 'sp_number', true ); -if ( $player_number ) +if ( '' !== $player_number ) $caption = '' . $player_number . ' ' . $caption; // Add caption tag if has caption if ( $captiontag && $caption ) - $caption = '<' . $captiontag . ' class="wp-caption-text gallery-caption small-3 columns' . ( $player_number ? ' has-number' : '' ) . '">' . wptexturize( $caption ) . ''; + $caption = '<' . $captiontag . ' class="wp-caption-text gallery-caption small-3 columns' . ( '' !== $player_number ? ' has-number' : '' ) . '">' . wptexturize( $caption ) . ''; if ( $link_posts ) $caption = '' . $caption . '';