Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Basic

// WP_Query arguments
$args = array (
	'post_type'              => 'post',
	'cat'                    => '-5',
	'posts_per_page'         => '1',
);

// The Query
$query = new WP_Query( $args );