Filters – team_grid_filter_skill

Vew count: 241

You can filter team grid skill by filter hook as follows.

add_filter('team_grid_filter_skill','team_grid_filter_skill_extra');

function team_grid_filter_skill_extra(){

  $team_member_skill = get_post_meta(get_the_ID(), 'team_member_skill', true );

  if(!empty($team_member_skill)){


    foreach($team_member_skill as $skill_key=>$skill_info){

      if(!empty($skill_info['value'])){

        echo '<div class="skill">';
        echo $skill_info['name'].'('.$skill_info['value'].')';
        echo '<div style=" background:#f00;width:'.$skill_info['value'].';" class="bars">&nbsp;</div>';
        echo '</div>';

      }
    }


  }

}