4 ,'column' => 4 ,'layout' => 1 ,'order' => 'ASC' ,'show_name' => 'yes' ,'show_designation' => 'yes' ,'show_bio' => 'yes' ,'show_socialmedia' => 'yes' ,'teams_list' => '' ,'slideron' => 'no' ,'slarrows' => 'no' ,'slprevicon' => 'fa fa-angle-left' ,'slnexticon' => 'fa fa-angle-right' ,'sldots' => 'no' ,'slautolay' => 'yes' ,'slautoplay_speed' => 3000 ,'slanimation_speed' => 300 ,'slcentermode' => 'no' ,'slcenterpadding' => 0 ,'slitems' => 4 ,'slrows' => 1 ,'slscroll_columns' => 1 ,'sltablet_width' => 750 ,'sltablet_display_columns' => 1 ,'sltablet_scroll_columns' => 1 ,'slmobile_width' => 480 ,'slmobile_display_columns' => 1 ,'slmobile_scroll_columns' => 1 ,'name_color' => '#343434' ,'bio_color' => '#343434' ,'desi_color' => '#343434' ,'social_color' => '#343434' ,'social_hovcolor' => '#343434' ), $atts ) ); $unique_class = uniqid('teammember_style_'); $teamclass = array( esc_attr($unique_class), 'team_area', 'team_style_'. esc_attr($layout) ); $slider_atts = array(); $slider_atts['class'] = ''; if( $slideron == 'yes' ){ $slider_atts['class'] = 'ht-carousel'; $slider_settings = [ 'arrows' => ( 'yes' === $slarrows ), 'arrow_prev_txt' => esc_attr($slprevicon), 'arrow_next_txt' => esc_attr($slnexticon), 'dots' => ( 'yes' === $sldots ), 'autoplay' => ( 'yes' === $slautolay ), 'autoplay_speed' => absint( $slautoplay_speed ), 'animation_speed' => absint( $slanimation_speed ), 'center_mode' => ( 'yes' === $slcentermode ), 'center_padding' => absint( $slcenterpadding ), ]; $slider_responsive_settings = [ 'rows' => esc_attr($slrows), 'display_columns' => esc_attr($slitems), 'scroll_columns' => esc_attr($slscroll_columns), 'tablet_width' => esc_attr($sltablet_width), 'tablet_display_columns' => esc_attr($sltablet_display_columns), 'tablet_scroll_columns' => esc_attr($sltablet_scroll_columns), 'mobile_width' => esc_attr($slmobile_width), 'mobile_display_columns' => esc_attr($slmobile_display_columns), 'mobile_scroll_columns' => esc_attr($slmobile_scroll_columns), ]; $slider_settings = array_merge( $slider_settings, $slider_responsive_settings ); } // Register CSS and JS if( $slideron == 'yes' ){ wp_enqueue_style('slick'); wp_enqueue_script('ht-teammin'); } $argss = array( 'post_type' => 'htteam_member', 'post_status' => 'publish', 'ignore_sticky_posts' => 1, 'posts_per_page' => empty( $teams_list ) ? esc_attr($limit) : -1, 'order' => esc_attr($order), ); if( $teams_list >= 1 ) { $team_names = explode(',', esc_attr($teams_list)); } else { $team_names = ''; } if ( !empty( $teams_list ) ) { $argss['post__in'] = $team_names; } $teammember = new WP_Query( $argss ); $itemwidth = 100/$column; ob_start(); $output = ''; // custom style $output .= ''; ?>
'> have_posts() ){ $i = 0; while ( $teammember->have_posts() ) { $i++; $teammember->the_post(); $designation = get_post_meta( get_the_ID(), 'htdesignation', true ); $socialitem = get_post_meta( get_the_ID(), 'socialmedia_group', true ); ?>

'.esc_html( $designation ).'

'; } ?>

'.get_the_excerpt().'

'; } ?>

'.esc_html( $designation ).'

'; } ?>

'.get_the_excerpt().'

'; } ?>

'.esc_html( $designation ).'

'; } ?>

'.get_the_excerpt().'

'; } ?>

'.esc_html( $designation ).'

'; } ?>

'.get_the_excerpt().'

'; } ?>

'.get_the_excerpt().'

'; } ?>

'.esc_html( $designation ).'

'; } ?>