Surprise! We've been running on hardware provided by BuyVM for a few months and wanted to show them a little appreciation.
Running a paste site comes with unique challenges, ones that aren't always obvious and hard to control. As such, BuyVM offered us a home where we could worry less about the hosting side of things and focus on maintaining a clean and useful service! Go check them out and show them some love!
Submitted on September 15, 2015 at 12:38 PM

Section 1 (PHP)

<?php
			// WP_Query arguments
			$args = array (
				'post_type'              => array( 'gallery' ),
			);
			// The Query
			$query = new WP_Query( $args );

			if(!empty($query)) {
				// Here i should get the featured image now?
				while ($query->have_posts()) : $query->the_post();
					if ( has_post_thumbnail() ) {
						the_post_thumbnail();
					}
				endwhile; wp_reset_query();
			}else {
				// Post type doesn't exist anymore.
			}
			?>