Due to issues with the Internet.ee domain registry, our main domain, paste.ee, is currently disabled due to abuse reports. We are looking into alternative domains to continue operation, but for now the pastee.dev domain is the primary domain.
If you wish to blame someone, blame the scum using this site as a malware host.
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.
			}
			?>