document.write('<script src="https://cdn.jsdelivr.net/highlight.js/9.0.0/highlight.min.js" type="text/javascript"></script>');
document.write('<link media="all" type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/highlight.js/9.0.0/styles/default.min.css">');
document.write('<link media="all" type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/highlight.js/9.0.0/styles/tomorrow.min.css">');
document.write('<style>#pastee-AwfIGQmwzyFkoUiY-content { margin-top: 0px !important; background-color: #f7f7f9; border: 1px solid #e1e1e8; white-space: pre-wrap; } #pastee-AwfIGQmwzyFkoUiY-content > code { margin-top: 0px !important; }</style>');
document.write('Paste provided by <a href="https://pastee.dev">Paste.ee</a> - <a href="https://pastee.dev/p/zkj78">View Original</a> - <a href="https://pastee.dev/r/zkj78/0">View Raw</a> - <a href="https://pastee.dev/d/zkj78/0">Download</a><br />');
document.write('<pre id="pastee-AwfIGQmwzyFkoUiY-content"><code>\&lt;\?php\n			// WP_Query arguments\n			$args = array (\n				\&#039;post_type\&#039;              =&gt; array( \&#039;gallery\&#039; ),\n			);\n			// The Query\n			$query = new WP_Query( $args );\n\n			if(!empty($query)) {\n				// Here i should get the featured image now?\n				while ($query-&gt;have_posts()) : $query-&gt;the_post();\n					if ( has_post_thumbnail() ) {\n						the_post_thumbnail();\n					}\n				endwhile; wp_reset_query();\n			}else {\n				// Post type doesn\&#039;t exist anymore.\n			}\n			?&gt;</code></pre>');

function initEmbeddedPaste_AwfIGQmwzyFkoUiY() {
	hljs.highlightBlock(document.getElementById('pastee-AwfIGQmwzyFkoUiY-content'));
}

addEventListener('DOMContentLoaded', initEmbeddedPaste_AwfIGQmwzyFkoUiY, false);
addEventListener('load', initEmbeddedPaste_AwfIGQmwzyFkoUiY, false);