Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

meta query

$meta_query = array(
	array(
		'key'     => 'view_home',
		'value'   => '1',
	),
);