have_posts()) : $slide_query->the_post(); $posts_array[] = $id; if (has_post_thumbnail()) { ?>