'post',
'posts_per_page' => 9,
'tax_query' => array(
array(
'taxonomy' => 'category',
'field' => 'term_id',
'terms' => $catid
),
),
);
$query = new WP_Query($args);
while ($query->have_posts()) { $query->the_post();
$image = wp_get_attachment_image_src( get_post_thumbnail_id(), 'educenter-gallery', true );
?>