esc_attr($best_education_team_number), 'orderby' => 'post__in', 'post_type' => 'page', 'post__in' => $best_education_team_page_list_array, ); return $qargs; break; case 'from-category': if (class_exists('Education_Connect') && post_type_exists('teams' )) { $best_education_team_category = esc_attr(best_education_get_option('select_category_for_team')); $qargs = array( 'post_type' => 'teams', 'posts_per_page' => esc_attr($best_education_team_number), 'tax_query' => array( array( 'taxonomy' => 'team-category', 'field' => 'id', 'terms' => absint($best_education_team_category), ) )); } else { $best_education_team_category = esc_attr(best_education_get_option('select_category_for_team')); $qargs = array( 'posts_per_page' => esc_attr($best_education_team_number), 'post_type' => 'post', 'cat' => $best_education_team_category, ); } return $qargs; break; default: break; } ?>

have_posts()) : while ($best_education_team_query->have_posts()) : $best_education_team_query->the_post(); if (has_post_thumbnail()) { $thumb = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'large'); $url = $thumb['0']; } else { $url = ''; } if (has_excerpt()) { $best_education_team_content = get_the_excerpt(); } else { $best_education_team_content = best_education_words_count($best_education_team_excerpt_number, get_the_content()); } ?>