Could you advise how to remove the parameters please?
<?php
/************************************************************************
* Team members
*************************************************************************/
global $post,$smof_data,$nzs_category;
$old = $post;
if(isset($smof_data['nzs_team_cols'])){
switch ($smof_data['nzs_team_cols']) {
case 2:
$team_column_num = "eight columns";
break;
case 3:
$team_column_num = "one-third column";
break;
case 4:
$team_column_num = "four columns";
break;
default:
$team_column_num = "four columns";
break;
}
}else{
$team_column_num = "four columns";
}
$target_window = $smof_data['nzs_social_target'];
$portfolio_query = new WP_Query( array( 'post_type' => 'team_members', 'posts_per_page' => -1, 'order' => 'ASC','filter_team'=>$nzs_category ) );
if($portfolio_query->have_posts()): while($portfolio_query->have_posts()) : $portfolio_query->the_post();
$team_link = get_post_meta(get_the_ID(), 'nzs_team_link_option', true);
$team_link_window = get_post_meta(get_the_ID(), 'nzs_team_link_window', true);
?>
<div class="<?php echo $team_column_num; ?> project">
<div class="gallery-padding">
<div class="img-frame">
<div class="image-wrapper wp-colorbox-image cboxElement" href="<?php echo get_permalink();?>">
<?php
if(has_post_thumbnail()){
// $thumb = wp_get_attachment_image_src( get_post_thumbnail_id(), 'team-thumbnail');
$thumb = nzs_get_post_image(get_post_thumbnail_id());
?>
<div class="team-image">
<?php if($team_link){?>
<a href="<?php echo esc_url($team_link);?>" target="<?php esc_attr_e($team_link_window); ?>"><img src="<?php echo $thumb;?>" alt="" class="rounded scale-with-grid"></a>
<?php }else{ ?>
<img src="<?php echo $thumb;?>" alt="" class="rounded scale-with-grid">
<?php } ?>
</div>
<?php
}else{
?>
<div class="team-image">
<?php if($team_link){?>
<a href="<?php echo esc_url($team_link);?>" target="<?php esc_attr_e($team_link_window); ?>"><img src="<?php echo get_template_directory_uri(); ?>/assets/img/team-holder.jpg" alt="" class="rounded scale-with-grid"></a>
<?php }else{ ?>
<img src="<?php echo get_template_directory_uri(); ?>/assets/img/team-holder.jpg" alt="" class="rounded scale-with-grid">
<?php } ?>
</div>
<?php
}
?>
<div class="team-details">
<h5><?php the_title();?></h5>
<?php the_excerpt();?>
<?php $rdmore = get_the_permalink($post->ID);?>
</div>
<div class="read"><?php echo do_shortcode('[wp_colorbox_media url="'.$rdmore.'" type="image" hyperlink="READ MORE"]');?></div>
</div>
</div>
</div>
</div>
<?php
endwhile;
endif;
$post = $old;
?>