Force future event permalinks
This commit is contained in:
@@ -79,7 +79,7 @@ if ( $show_title && $id ) {
|
||||
$j++;
|
||||
if ( has_post_thumbnail ( $team ) ):
|
||||
if ( $link_teams ):
|
||||
$logo = '<a class="team-logo logo-' . ( $j % 2 ? 'odd' : 'even' ) . '" href="' . get_post_permalink( $team ) . '" title="' . get_the_title( $team ) . '">' . get_the_post_thumbnail( $team, 'sportspress-fit-icon' ) . '</a>';
|
||||
$logo = '<a class="team-logo logo-' . ( $j % 2 ? 'odd' : 'even' ) . '" href="' . get_post_permalink( $team, false, true ) . '" title="' . get_the_title( $team ) . '">' . get_the_post_thumbnail( $team, 'sportspress-fit-icon' ) . '</a>';
|
||||
else:
|
||||
$logo = get_the_post_thumbnail( $team, 'sportspress-fit-icon', array( 'class' => 'team-logo logo-' . ( $j % 2 ? 'odd' : 'even' ) ) );
|
||||
endif;
|
||||
@@ -122,7 +122,7 @@ if ( $show_title && $id ) {
|
||||
<?php endif; endif; ?>
|
||||
<h4 class="sp-event-title">
|
||||
<?php if ( $link_events ): ?>
|
||||
<a href="<?php echo get_post_permalink( $event ); ?>"><?php echo $event->post_title; ?></a>
|
||||
<a href="<?php echo get_post_permalink( $event, false, true ); ?>"><?php echo $event->post_title; ?></a>
|
||||
<?php else: ?>
|
||||
<?php echo $event->post_title; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
Reference in New Issue
Block a user