Merge pull request #357 from kadimi/patch-21
Fix multiple linked venues separator in team details
This commit is contained in:
@@ -36,7 +36,7 @@ endif;
|
|||||||
$terms = get_the_terms( $id, 'sp_venue' );
|
$terms = get_the_terms( $id, 'sp_venue' );
|
||||||
if ( $terms ):
|
if ( $terms ):
|
||||||
if ( get_option( 'sportspress_team_link_venues', 'no' ) === 'yes' ):
|
if ( get_option( 'sportspress_team_link_venues', 'no' ) === 'yes' ):
|
||||||
$data[ __( 'Home', 'sportspress' ) ] = get_the_term_list( $id, 'sp_venue' );
|
$data[ __( 'Home', 'sportspress' ) ] = get_the_term_list( $id, 'sp_venue', '', ', ' );
|
||||||
else:
|
else:
|
||||||
$venues = array();
|
$venues = array();
|
||||||
foreach ( $terms as $term ):
|
foreach ( $terms as $term ):
|
||||||
@@ -59,4 +59,4 @@ $output .= '</dl></div>';
|
|||||||
?>
|
?>
|
||||||
<div class="sp-template sp-template-team-details sp-template-details">
|
<div class="sp-template sp-template-team-details sp-template-details">
|
||||||
<?php echo $output; ?>
|
<?php echo $output; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user