'page', 'page_id' => absint($best_education_about_page), 'posts_per_page' => 1, ); $best_education_about_main_post_query = new WP_Query($best_education_about_main_args); if ($best_education_about_main_post_query->have_posts()) : while ($best_education_about_main_post_query->have_posts()) : $best_education_about_main_post_query->the_post(); if (has_excerpt()) { $best_education_main_about_content = get_the_excerpt(); } else { $best_education_main_about_content = best_education_words_count($best_education_main_about_excerpt_number, get_the_content()); } ?>

'post', 'cat' => absint($best_education_about_page_cat), 'posts_per_page' => 4, ); ?>
have_posts()) : while ($best_education_about_cat_post_query->have_posts()) : $best_education_about_cat_post_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 = NULL; }?>
'page', 'page_id' => absint($best_education_about_sec_arg), 'posts_per_page' => 1, ); $best_education_about_sec_post_query = new WP_Query($best_education_about_sec_args); if ($best_education_about_sec_post_query->have_posts()) : while ($best_education_about_sec_post_query->have_posts()) : $best_education_about_sec_post_query->the_post(); if (has_excerpt()) { $best_education_sec_about_content = get_the_excerpt(); } else { $best_education_sec_about_content = best_education_words_count($best_education_sec_about_excerpt_number, get_the_content()); } if (has_post_thumbnail()) { $thumb = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'full'); $url = $thumb['0']; } else { $url = NULL; } ?>

'courses', 'posts_per_page' => 6, 'tax_query' => array( array( 'taxonomy' => 'course-category', 'field' => 'id', 'terms' => absint($best_education_sec_cat), ) )); } else { $best_education_testimonial_category = esc_attr(best_education_get_option('select_category_for_testimonial')); $best_education_about_sec_cat_args = array( 'posts_per_page' => 6, 'post_type' => 'post', 'cat' => absint($best_education_sec_cat), ); } ?>