Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

meta-1

$meta_query = array(
	'relation' => 'AND',
	array(
		'key'     => 'months_available',
		'value'   => '1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12',
		'compare' => 'NOT LIKE',
		'type'    => 'NUMERIC',
	),
	array(
		'key'     => 'months_available',
		'value'   => '$thisMonth',
		'compare' => 'LIKE',
		'type'    => 'NUMERIC',
	),
);